On Tue, Jan 26, 2010 at 19:48, Daevid Vincent wrote:
>
> Another thing I just noticed, is that we (that is Dan and I) should NOT
> have used count()
> This is bad form and wasted cycles.
This is certainly correct, but it should also be noted that my
original code used it once (thus, it was in
> -Original Message-
> From: muquad...@gmail.com [mailto:muquad...@gmail.com] On
> Behalf Of shiplu
> Sent: Tuesday, January 26, 2010 4:25 PM
> To: Daniel Brown
> Cc: Daevid Vincent; PHP-General
> Subject: Re: [PHP] If the first four characters are "0000"
Ran this code (http://pastie.org/795983)
The result is,
array of 10,000
Array
(
[[]] => 5.66168689728
[strpos] => 5.70796895027
[substr] => 5.92751288414
[preg_match] => 6.21515512466
)
--
Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
S
On Tue, Jan 26, 2010 at 17:17, Daevid Vincent wrote:
>
> Well allow me to retort... :)
>
> Your test was for 5 measly array elements.
>
> Just for S&G I tried it with the strpos one too and modified your test
> slightly to handle bigger arrays...
>
[snip=code]
>
> I ran out of memory with more tha
> -Original Message-
> From: paras...@gmail.com [mailto:paras...@gmail.com] On
> Behalf Of Daniel Brown
> Sent: Tuesday, January 26, 2010 8:21 AM
> To: Daevid Vincent
> Cc: John Taylor-Johnston; PHP-General
> Subject: Re: [PHP] If the first four characters are "", then do {}
>
> On
5 matches
Mail list logo