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_rep
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 ma
Hi,
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
Test this:
$string = "cortland, ny 13045";
$search = array(", ", ","); # if there is no space after the comma, we make
this ;-)
$replace = array(" ", " ");
$newStr
Konrad,
On Dec 5, 2008, at 4:22 PM, Konrad Priemer wrote:
$array = explode(" ", "Jason Slack");
Awesome, thanks, yup that does it.
Can you explain how to do an address now into City, State, Zip
Like: cortland, ny 13045
It has a comma and a space!
-Jason
--
PHP General Mailing List (htt
Hi,
Jason wrote:
> I have a string that is: Jason Slack
> and I want it broken at the space so i get Jason and then Slack
explode or split can do this.
$array = explode(" ", "Jason Slack");
Array
(
[0] => Jason
[1] => Slack
)
Greetings from Stuttgart
Conny
---
Firma Konrad Priemer
O
5 matches
Mail list logo