Jason Barnett wrote:

Well you could put all of your function definitions into a separate file. Then, just include the function file before you loop through the code that uses the functions. Or as an alternative you could also do:

<?php
if (!function_exists('name_of_function')) {
  function name_of_function() {
     // do something
  }
}
?>

But this really isn't a good idea. Try to put the function definitions into a separate file if that's feasible.

Jason


Thank you Jason. The problem I'm having is that part of what I'm benchmarking is having to define the functions compared to having not to. Basically part of the speed improvement is taking big parts of the code out of functions, so I need the definitions there :/

Cristian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to