/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function just_clean($string) { // Replace other special chars '#' => '', '$' => '', '%' => '', '&' => '', '@' => '', '.' => '', '€' => '', '+' => '', '=' => '', '§' => '', '\\' => '', '/' => '', );</code> } "ÀÃÂÃÄÅ� áâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÃÃŽÃìÃîïÙÚÛÜùúûüÿÑñ", "AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn" ); // Remove all remaining other unknown characters return $string; } ?>
URL: http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string
Comments
