Page 1 of 1

Using functions

Posted: Tue Sep 02, 2003 2:01 pm
by benedict5980
Hi!

Which is better performance-wise? Using functions or not?

Posted: Tue Sep 02, 2003 3:02 pm
by daven
Umm...how would you write code without using functions?

Modular code is a good thing. Function calls are a good thing. Having one huge mess is a bad thing.

Granted, PHP's OOP stuff is not perfect yet, but even simple functions are better than spaghetti code

Posted: Tue Sep 02, 2003 4:13 pm
by pootergeist
one function that will slow down your code (quite drastically in some cases) is sleep(10); ;)