Originally posted by: homercles337
Backslash boy nailed it!![]()
Originally posted by: Zugzwang152
Originally posted by: homercles337
Backslash boy nailed it!![]()
why does this have vaguely homoerotic undertones to it?
Originally posted by: Zugzwang152
alternatively you can escape the quote simply by putting a backslash before it.
echo 'y h\'elo t\'har\', o\'mg \'t\'har is quote\'s all ovar!';
edit: this works for both single and double quotes. Also, you can use the echo <<< ENDOFECHO; syntax if you have a large block of text with a ton of quotes. This can be especially usefull for echoing javascript to the browser.
