Posts: 2,536
Location: Western Maryland
|
Quote:
|
Originally Posted by Bon Bon
Using functions is actually a lot slower than doing things without using functions.
|
I am not sure the basis for your assertion, but I would offer in respectful opposition that in tasks where the number of instructions is limited (and let's face it, most PHP scripts use to build web pages are exactly that), the amount of time saved by avoiding functions is so miniscule that it is rendered irrelevant.
Functions made available by the PHP scripting language itself can be assumed to be optimized for their purposes and their cost minimal.
Again, I would be interested in any references you have showing functions to be inherently slower than in-line code.
__________________
—Kyrnt
|