Jump to content

Random question


The Praetorian

Recommended Posts

http://www.htmlhelp.com/reference/html40/e...es/special.html‘ = ‘the w3schools reference page says there is a problem using the apostrophe code in an IE browser, so maybe use the one above???http://www.w3schools.com/tags/ref_entities.asp' apostrophe ' (does not work in IE) '
Link to comment
Share on other sites

You only need to escape a quote in a string if the quote is the same quote that encloses the string. So, a double-quoted string would need to escape double-quotes:echo "This string contains \"double quotes\" and 'single quotes'";And a single-quoted string would need to escape single-quotes:echo 'This string contains "double quotes" and \'single quotes\'';

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...