Re: first php 5 class

From: Date: Wed, 30 Jan 2008 19:44:59 +0000
Subject: Re: first php 5 class
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-268364@lists.php.net to get a copy of this message
On Jan 30, 2008 2:38 PM, Greg Donald <gdonald@gmail.com> 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

« previous php.general (#268364) next »