ฟังก์ชั่นที่พบบ่อยในการกรองข้อมูจาก input

function htmlentities() 
function converts characters to HTML entities.

code
<?php

$str = "<© W3Sçh°°¦§>";
echo htmlentities($str);
?>

output (html)
<!DOCTYPE html>
<html>
<body>
&lt;&copy; W3S&ccedil;h&deg;&deg;&brvbar;&sect;&gt;
</body>
</html>



แสดงความคิดเห็น

0 ความคิดเห็น