AW: Parsing Strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux