note 82360 added to function.str-replace
| From: | jjrosado at gmail dot com | Date: | Mon, 07 Apr 2008 23:24:48 +0000 |
| Subject: | note 82360 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138012@lists.php.net to get a copy of this message | ||
The following function is for replace html special characters as á,é,Ã,ó,ú,ñ.
function codeFix($string){
$string = htmlentities($string);
$string = str_replace("ñ","n",$string);
$string = str_replace("á","a",$string);
$string = str_replace("é","e",$string);
$string = str_replace("í","i",$string);
$string = str_replace("ó","o",$string);
$string = str_replace("ú","u",$string);
return $string;
}
----
Server IP: 69.147.83.197
Probable Submitter: 66.50.238.117
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/82360
Del: integrated -- https://master.php.net/note/delete/82360/integrated
Del: useless -- https://master.php.net/note/delete/82360/useless
Del: bad code -- https://master.php.net/note/delete/82360/bad+code
Del: spam -- https://master.php.net/note/delete/82360/spam
Del: non-english -- https://master.php.net/note/delete/82360/non-english
Del: in docs -- https://master.php.net/note/delete/82360/in+docs
Del: other reasons-- https://master.php.net/note/delete/82360
Reject -- https://master.php.net/note/reject/82360
Search -- https://master.php.net/manage/user-notes.php