note 82360 deleted from function.str-replace by ezyang

From: Date: Mon, 07 Apr 2008 23:41:37 +0000
Subject: note 82360 deleted from function.str-replace by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138013@lists.php.net to get a copy of this message
Note Submitter: jjrosado at gmail dot com Reason: useless ---- 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; }

« previous php.notes (#138013) next »