escape special characters php code example
Example 1: html special characters php
$string = "This is testing message "ETC" ";
htmlspecialchars($string, ENT_COMPAT)
Example 2: french special characters php
<?php header('Content-Type: text/html; charset=iso-8859-1'); ?>