Thursday 2 May 2019

php - parsing error - syntax error, unexpected T_NS_SEPARATOR

I have this line in PHP:



$bom != b"\xEF\xBB\xBF" 


When I run it, I get the error:



Parse error: syntax error, unexpected T_NS_SEPARATOR in
C:\xampp\htdocs\MediaAlbumWeb\Utils\Utils.php on line 218



What is the T_NS_SEPARATOR in php and why is it unexpected?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...