Re: first php 5 class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 30, 2008 2:38 PM, Greg Donald <gdonald@xxxxxxxxx> wrote:
> If you like Java then stick with PHP as that's where the syntax is
> clearly headed:
>
> http://www.php.net/~helly/php/ext/spl/

ive been studying spl a lot recently.  actually, last night
i was benching it against foreach over standard arrays.
the results were staggering, spl is roughly twice as fast.
and if you iterate over the same structure more than once,
say ArrayIterator, vs. multiple times iterating over a regular
array w/ the foreach or while construct, the savings only
compound!
when you said earlier that people arent interested in learning
php, this is something i immediately thought of.  primarily
because spl debuted in php 5.0 and practically nobody is
using it (which could just be my skewed perception) when it
is extremely powerful.

-nathan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux