Source Code:
(back to article)
<?php $text = "Here's an example of using an apostrophe in PHP"; // Convert the string to UTF-8 encoding $text = mb_convert_encoding($text, 'UTF-8'); echo $text; ?>
Result:
Report an issue