Re: functions versus includes
| From: | Nathan Nobbe | Date: | Mon, 12 Nov 2007 05:02:36 +0000 |
| Subject: | Re: functions versus includes | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264342@lists.php.net to get a copy of this message | ||
On Nov 11, 2007 11:52 PM, Chris <dmagick@gmail.com> wrote:
> As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference
> over 10 iterations - wow ;)
>
actually it was just one iteration; the output isnt very clear, but thats
the
value of a variable.
anyway, i was surprised to see the function was faster at all. i though the
include would be faster.
so not only is the function faster (if only but a bit) its also cleaner as
well.
i think a decision between the 2 approaches no-brainer.
-nathan