Monday 11 February 2019

HTML to PHP echo error

Im still new in PHP, HTML or Javascipt. Im trying to find solution about this problem.



I got this error



Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING when trying to show in echo.



Original Code




" />


when change to echo



echo "\" />\n";


Can someone help me or explain why?

Thank you..

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...