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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php