syntax error, unexpected 'Â Â Â Â ' (T_STRING)

后端 未结 2 1614
情话喂你
情话喂你 2021-01-23 05:00

Why does my PHP mailing code always give:

syntax error, unexpected \'Â Â Â Â \' (T_STRING) in C:\\xampp\\htdocs\\GSP\\members.php on line 4

2条回答
  •  温柔的废话
    2021-01-23 05:47

    Your problem is that the PHP file has been saved with exotic white space characters -- ie not standard spaces, but some other characters that are rendered as spaces (or even not shown at all), but are unparseable by PHP.

    Delete all the white space characters on lines 3 and 4, re-type them, and save the file. (that's all white space, including line feeds and spaces between words)

    This should solve the problem.

    If after doing this, you still get the error, but on a different line, then you will need to repeat the process for that line too.

提交回复
热议问题