PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php // Nope echo htmlentities('A'); ?> <?php // Nope echo html_entity_decode('&#X41;', ENT_QUOTES | ENT_XML1, 'UTF-8'); ?> <?php // Yarp echo htmlentities('Á'); ?> <?php // Yarp echo html_entity_decode('&#X41;', ENT_QUOTES); ?> <?php $input = "Fovi&#269;"; $output = preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $input); /* Plain UTF-8. */ echo $output; ?>
Show:  
Copy Clear