note 54913 deleted from function.strtr by danbrown

From: Date: Thu, 04 Mar 2010 18:21:51 +0000
Subject: note 54913 deleted from function.strtr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166676@lists.php.net to get a copy of this message
Note Submitter: stefan ---- there is obviously an S missing in getRewriteString from above: function getRewriteString($sString) { $string = htmlentities(strtolower($sString)); $string = preg_replace("/&(.)(acute|cedil|circ|ring|tilde|uml);/", "$1", $string); $string = preg_replace("/([^a-z0-9]+)/", "-", html_entity_decode($string)); $string = trim($string, "-"); return $string; }

« previous php.notes (#166676) next »