Re: Which is better Explode or Split?

From: Date: Mon, 07 Aug 2000 22:12:07 +0000
Subject: Re: Which is better Explode or Split?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10545@lists.php.net to get a copy of this message
On Mon, 7 Aug 2000, Philip Hess wrote: > Hello, > > Given a delimited string like > "000000|FFFFFF|0000FF|00FF00|FF0000|user@domain.com|password|99999|Ima User" > Is explode or split the better choice to use? > > I've read the docs and I'm leaning toward explode since implode is the > compliment to it. Basically I'm trying to make a user customization script > where they can set the colors that the web page is shown in. As per the manual page for split.. Note that if you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine. I'd say explode is your answer. Matt

« previous php.general (#10545) next »