Either escape the quote with a backslash, or use double quotes to designate the string.
echo 'Here goes your message with an apostrophe S like thi\'s';
echo "Here goes your message with an apostrophe S like thi's";
More Related Contents:
- Browser detection in PHP causes white screen [closed]
- Echo in an image
- How can I echo HTML in PHP?
- PHP echo vs PHP short echo tags
- php – insert a variable in an echo string
- Reference: Comparing PHP’s print and echo
- What is the difference between PHP echo and PHP return in plain English?
- Can I echo a variable with single quotes?
- PHP to search within txt file and echo the whole line
- PHP explode the string, but treat words in quotes as a single word
- How are echo and print different in PHP? [duplicate]
- PHP POST not working
- Single quotes or double quotes for variable concatenation? [closed]
- How to handle double quotes in string before XPath evaluation?
- How do I replace double quotes with single quotes
- PHP static variables in double quotes
- PHP printed boolean value is empty, why?
- Difference between php echo and return in terms of a jQuery ajax call [closed]
- How to echo in PHP, HTML tags
- Add PHP variable inside echo statement as href link address?
- PHP quotes inside quotes
- PHP: different quotes?
- How can I echo the whole content of a .html file in PHP?
- How to clear previously echoed items in PHP
- How to use css style in php
- php echo vs open&close tag
- PHP file_get_contents does not work on localhost
- Write CSV To File Without Enclosures In PHP
- What is the ASP.Net equivalent to PHP’s Echo?
- PHP Echo text Color