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

Reply via email to