Need Help # Edited

From: Date: Sun, 03 Jul 2011 23:20:58 +0000
Subject: Need Help # Edited
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11455@lists.php.net to get a copy of this message
Hello There i have written a code like this ----------------------------------------------------------------------------------------------------- $text="سلام من حامد هستم"; function slugify($text) {   // replace all non letters or digits with -   $text = preg_replace('/\W+/', '-', $text);   // trim and lowercase   $text =  strtolower(trim($text, '-'));   return $text; } echo slugify($text); but when I try it in English it works $text="Hi iam hamed"; function slugify($text) {   // replace all non letters or digits with -   $text = preg_replace('/\W+/', '-', $text);   // trim and lowercase   $text = strtolower(trim($text, '-'));   return $text; } echo slugify($text); please help me Thanks

« previous php.webmaster (#11455) next »