by Rachael » Sat Jul 06, 2013 0:10
Make sure that the \" \" encapsulators are intact. Don't remove the \ because then PHP does not know that it's supposed to be an escaped quotation mark, and will treat it like a string terminator.
Another thing you can do is use the following syntax:
Code: Select all
$variable = ?><use lots of raw HTML here><?php
Funny as it may sound, PHP is the kind of language that will treat that as a valid string, rather than forcing it to output to the page. As anti-intuitive as that can be, that can be very useful when you're bungling up with syntax errors until you get used to viewing it as an escaped sequence.
Make sure that the \" \" encapsulators are intact. Don't remove the \ because then PHP does not know that it's supposed to be an escaped quotation mark, and will treat it like a string terminator.
Another thing you can do is use the following syntax:
[code]$variable = ?><use lots of raw HTML here><?php[/code]
Funny as it may sound, PHP is the kind of language that will treat that as a valid string, rather than forcing it to output to the page. As anti-intuitive as that can be, that can be very useful when you're bungling up with syntax errors until you get used to viewing it as an escaped sequence.