[nycphp-talk] $$ question
Dan Cech
dcech at phpwerx.net
Thu May 26 09:25:01 EDT 2005
David Mintz wrote:
> On Thu, 26 May 2005, Rolan Yang wrote:
>>I'd have to agre with Andrew's solution mentioned above.
>>Looks like your simple script could even do without a function block.
>>Here's a more concise way of doing it:
>
> <snip snip snip />
>
>><? while(list($trash,$event)=each($data)) {
>
>
> or for even less typing:
>
> while(list(,$event) = each($data)) {
>
or even
foreach ($data as $event) {
... which has the advantage of running faster too
Dan
More information about the talk
mailing list