Bentley4 Posted May 22, 2011 Share Posted May 22, 2011 Hey! echo "<ol type=\"a"\>"; This gives an error, how am I supposed to escape the " " correctly? Link to comment https://forums.phpfreaks.com/topic/237121-how-can-i-escape-this/ Share on other sites More sharing options...
Rifts Posted May 22, 2011 Share Posted May 22, 2011 echo "<ol type='a'>"; Link to comment https://forums.phpfreaks.com/topic/237121-how-can-i-escape-this/#findComment-1218701 Share on other sites More sharing options...
Pikachu2000 Posted May 22, 2011 Share Posted May 22, 2011 You have the second backslash after the quote. It should be before it. Link to comment https://forums.phpfreaks.com/topic/237121-how-can-i-escape-this/#findComment-1218702 Share on other sites More sharing options...
Bentley4 Posted May 22, 2011 Author Share Posted May 22, 2011 Works, thnx!! Link to comment https://forums.phpfreaks.com/topic/237121-how-can-i-escape-this/#findComment-1218703 Share on other sites More sharing options...
matthew9090 Posted May 22, 2011 Share Posted May 22, 2011 Hey! echo "<ol type=\"a"\>"; This gives an error, how am I supposed to escape the " " correctly? echo "<ol type=\"a\">"; you got backslash in wrong place edit: sorry didn't see other posts Link to comment https://forums.phpfreaks.com/topic/237121-how-can-i-escape-this/#findComment-1218706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.