AW: [PHP] Parsing Strings

From: Date: Sat, 06 Dec 2008 01:06:14 +0000
Subject: AW: [PHP] Parsing Strings
Groups: php.general 
Request: Send a blank email to php-general+get-284222@lists.php.net to get a copy of this message
Oups, sorry mistake by copy & paste ;-) On Sa 06.12.2008 01:30 Jason wrote: > Can you explain how to do an address now into City, State, Zip > Like: cortland, ny 13045 $string = "cortland, ny 13045"; $search = array(", ", ","); $replace = array(" ", " "); $newString = str_replace($search, $replace, $string); $array = explode(" ", $newString); Regards from Stuttgart Conny PS: Sorry about my perfect english

« previous php.general (#284222) next »