Re: Split string

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

 



Look at split() and explode().

Lester Caine wrote:
Can someone with a few more working grey cells prompt me with the correct command to split a string.

The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second. It's the 'first either space or comma' that eludes me at the moment :(

In know it's probably obvious, but it always is when you know the answer.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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