Re: AW: [PHP] Parsing Strings
| From: | Jason Todd Slack-Moehrle | 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,
Ah ha! Nice that makes sense, why did I not think of that! -JasonCan 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);