but what if you decide later you want more objects or globals in your function?? your parameter list could get quit long!
-- Rolf Vreijdenberger De Pannekoek en De Kale W: www.depannekoekendekale.nl "Gerard Samuel" <[EMAIL PROTECTED]> schreef in bericht news:3DC54436.2090803@;trini0.org... > 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