Putting a backslash before apostrophes should work, right?
For instance, $str = 'He like/'s to play ball.'
I know I could use " " here, but in the case I'm working with, I'd prefer not to do that.
| SitePoint Sponsor |
Putting a backslash before apostrophes should work, right?
For instance, $str = 'He like/'s to play ball.'
I know I could use " " here, but in the case I'm working with, I'd prefer not to do that.


other way
PHP Code:$str = 'He like\'s to play ball.';
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Thanks. Unfortunately, I noticed that just a moment ago.
Bookmarks