Re: Split string

From: Date: Wed, 02 May 2007 10:08:32 +0000
Subject: Re: Split string
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-254223@lists.php.net to get a copy of this message
Stut wrote:
Alternatively you could use split to break the string into the two parts, which is probably more efficient... list($part1, $part2) = split('[ ,]', $myString);
Oops, this should have a third parameter... list($part1, $part2) = split('[ ,]', $myString, 2); -Stut

« previous php.general (#254223) next »