QUOTE(Michael Boutros @ Apr 25 2006, 05:27 PM)

Just a note to any beginner trying to run that code, it requires PHP 5.
Offtopic: PHP 5 OOP -> PWNAGE!
Ah, that's right. I thought it'd have been clear by now, but unfortunately it's far too rarely used (and therefore supported). The OOP is indeed a great improvement, but it still really isn't full-fletched enough in my opinion. It probably is enough for most people, though.

QUOTE(Dimdum @ Apr 26 2006, 06:10 AM)

Tell me, do you care about these 0.002 seconds?!
Probably not, but why'd you NOT save them? Is it better to use those extra .002 seconds just to be able to say "I don't optimise my code?"
QUOTE(Dimdum @ Apr 26 2006, 06:38 AM)

Frankly speaking, when you have a loop that executes 1,000 times it is matter. But the total time that the loop will run will be long, and your server will stop it, beacuse the execution time is limited.
Maybe, maybe not. I personally keep
max_execution_time off, because I think it's an annoyance rather than a feature. It's cool that it's offered and all, but I hate that it's turned on by default.
Oh, in case anyone wonders, the reason I'm defining the template function as 'inner_(some number)' is that PHP for whatever reason doesn't allow redeclaration of functions, unless they're methods. Annoying, but I guess this works.