Home  >  Article  >  Backend Development  >  Why is the grammar wrong here?

Why is the grammar wrong here?

WBOY
WBOYOriginal
2016-08-04 09:20:151069browse

<code>class foo 
{
    public $hello = 'a';
    public function m()
    {
         echo 'dsds';
    }
}

$obj = new foo();
$obj->m();
</code>

Why is the grammar wrong here?

Is it related to the virtual machine? Virtualbox 5.1
mounts a shared folder /mnt/shared

Why is the grammar wrong here?
The same error is reported, I’m really confused!
Why is the grammar wrong here?

ie 11 is also wrong, no cache

Win is running xampp
ubuntu is running nginx php5.6
win (host) and ubuntu (virtual machine) share folders at the same time C: workspace

Why is the grammar wrong here?

There is still a problem after restarting the server, please cache the browser
The error still occurs when running on my computer
I suspect it is a problem with the editor??

Why is the grammar wrong here?

Reply content:

<code>class foo 
{
    public $hello = 'a';
    public function m()
    {
         echo 'dsds';
    }
}

$obj = new foo();
$obj->m();
</code>

Why is the grammar wrong here?

Is it related to the virtual machine? Virtualbox 5.1
mounts a shared folder /mnt/shared

Why is the grammar wrong here?
The same error is reported, I’m really confused!
Why is the grammar wrong here?

ie 11 is also wrong, no cache

Win is running xampp
ubuntu is running nginx php5.6
win (host) and ubuntu (virtual machine) share folders at the same time C: workspace

Why is the grammar wrong here?

There is still a problem after restarting the server, please cache the browser
The error still occurs when running on my computer
I suspect it is a problem with the editor??

Why is the grammar wrong here?

Thanks everyone, I found the problem. It was a syntax error caused by hidden characters
Why is the grammar wrong here?

Why is the grammar wrong here?

Why is the grammar wrong here?

I copied your code and tried it, everything works fine. When you write, please note that the quotation marks must be in English.

There is no error. It may be caused by your browser cache. Try ctrl + F5 to force refresh the browser

Looks really right

Why is the grammar wrong here?

Why is the grammar wrong here?

Tested it, no problem.
Get up, drink a glass of water, smoke a cigarette, go to the toilet, come back and open it again. If it doesn’t work, change the browser.
Those inexplicable little problems are basically solved


Try replacing single quotes with double quotes
Why does the error message say ‘‘dsds’’ with two quotes

If you encounter this kind of problem, try formatting the code. It might be better to format the full-width characters into half-width characters.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn