Source Code:
(back to article)
<?php $name = "o'reilly"; $name = str_replace("'", "'", $name); $name = ucwords($name); // html_entity_decode() decodes the HTML entities in the string $name = html_entity_decode($name); echo $name; // Outputs "O'Reilly"
Result:
Report an issue