Re: Re: preg_split

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

 



Google Kreme wrote:
> On 03 Nov 2006, at 12:32 , Myron Turner wrote:
>> 2. Why do you need this complex expression to split at a comma? This
>> '/,/' would do the trick.  And even simpler
>>         explode(',', $line);
> 
> Because I need to split only at the FIRST comma.

explode(',', $line, 2);

http://php.net/explode

-Stut

-- 
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