function htmlentities()
function converts characters to HTML entities.
code
<?php
$str = "<© W3Sçh°°¦§>";
echo htmlentities($str);
?>
output (html)
<!DOCTYPE html>
<html>
<body>
<© W3Sçh°°¦§>
</body>
</html>
0 ความคิดเห็น