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? Quote 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'>"; Quote 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. Quote 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!! Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.