note 54571 deleted from function.str-replace by betz

From: Date: Fri, 08 Jul 2005 07:52:34 +0000
Subject: note 54571 deleted from function.str-replace by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91640@lists.php.net to get a copy of this message
Note Submitter: estereofonico at gmail dot com Reason: non-english ---- Si alguna vez necesita reemplazar las tildes de un párrafo esta función le puede ser muy útil. $texto = "Ésta es una bellísima canción de amor de añoranza"; function tildes ($texto) { global $texto; $vowels = array("á", "é", "í", "ó", "ú","ñ","Á", "É", "Í", "Ó", "Ú", "Ñ"); $rep = array ("á", "é", "í", "ó", "ú","ñ","Á", "É", "Í", "Ó", "Ú", "Ñ"); return str_replace($vowels, $rep, "$texto"); } // end func Estereofonica EU

« previous php.notes (#91640) next »