Re: AW: [PHP] Parsing Strings

From: Date: Sat, 06 Dec 2008 01:01:51 +0000
Subject: Re: AW: [PHP] Parsing Strings
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-284221@lists.php.net to get a copy of this message
Conny,
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);
Ah ha! Nice that makes sense, why did I not think of that! -Jason

« previous php.general (#284221) next »