--- Phill Sparks <[EMAIL PROTECTED]> wrote:

> On 25/05/07, James Keeline <[EMAIL PROTECTED]> wrote:
> >
> >  $array = split("\t", $string);
> >
> James, any reason for split rather than explode?  I'm just curious
> since the php.net site suggests explode for any non-regex stuff.
> 
> Phill

I've not done a benchmark to compare the speed of one function vs. another.  In
some cases multiple names are aliases for the same function.  The PHP docs
usually indicate this.

Sometimes the choice of which of multiple function names comes down to other
languages you know.  For example, someone who has done a lot of Bash
programming might lean towards echo rather than print.  However a Perl person
might prefer print.  I have read about some minor differences in performance
but havent done a benchmark to see how it works on my data and equipment.

James

Reply via email to