Something I just thought of about using global in a function.
Mostly I global objects in a function like ->

function foo()
{
   global $bar_object;
   $bar_object->do_something();
}

Is it better, more effiecient, if I pass it by reference, like ->
function foo(&$bar_object)
{
   $bar_object->do_something();
}

Thanks for your thoughts...

--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/



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

Reply via email to