Why is the syntax incorrect?

Source: Internet
Author: User
Will {code...} be related to the virtual machine? When virtualbox5.1 is attached to a shared folder mntshared, an error is reported! Ie11 is also wrong. in the cache-free win scenario, gginxphp5.6win (host) and ubuntu (virtual machine...
class foo {    public $hello = 'a';    public function m()    {         echo 'dsds';    }}$obj = new foo();$obj->m();

Will it be related to virtual machines? Virtualbox 5.1
A shared folder/mnt/shared


The same is true!

Ie 11 is also wrong, no cache

In Windows, xampp is used.
In ubuntu, nginx php5.6 is used.
Win (host) and ubuntu (Virtual Machine) share the folder C: workspace at the same time

There is still a problem with restarting the server. please cache the browser
Still running error on my computer
Is the editor a problem ??

Reply content:
class foo {    public $hello = 'a';    public function m()    {         echo 'dsds';    }}$obj = new foo();$obj->m();

Will it be related to virtual machines? Virtualbox 5.1
A shared folder/mnt/shared


The same is true!

Ie 11 is also wrong, no cache

In Windows, xampp is used.
In ubuntu, nginx php5.6 is used.
Win (host) and ubuntu (Virtual Machine) share the folder C: workspace at the same time

There is still a problem with restarting the server. please cache the browser
Still running error on my computer
Is the editor a problem ??

You have found the problem. it is a syntax error caused by hidden characters.

I copied your code and tried it. everything is normal. when you write the code, note that the quotation marks must be in English.

No error. it may be caused by your browser cache. tryctrl+F5Force refresh the browser

It looks really right.

No problem after testing.
Get up, drink a cup of water, smoke a cigarette, go to the toilet, and open it again. if not, change your browser.
The inexplicable small problems are basically solved.

How about double quotation marks?
Why are two quotation marks ('DSS') returned when an error occurs?

If this problem occurs, try to format the code and format the full-width character into a half-width character.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.