note 55366 added to function.str-replace

From: Date: Mon, 01 Aug 2005 14:04:06 +0000
Subject: note 55366 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-92868@lists.php.net to get a copy of this message
ESta funcion la hice para poder escribir articulos sin preocuparme de escribir acentos y las ñÑs <?php echo to_html("éstá és lá prúébá ñáÑdú"); function acentos($str){ $html_especial_chars =array( chr(193) => "&Aacute;", chr(201) => "&Eacute;", chr(205) => "&Iacute;", chr(211) => "&Oacute;", chr(218) => "&Uacute;", chr(225) => "&aacute;", chr(233) => "&eacute;", chr(237) => "&iacute;", chr(243) => "&oacute;", chr(250) => "&uacute;", chr(209) => "&Ntilde;", chr(241) => "&ntilde;", ); foreach($html_especial_chars as $key => $value) $str=str_replace($key,$value,$str); return $str; } ?> ---- Submitter IP: 200.73.8.42 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55366 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55366&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55366&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92868) next »