On Sun, 12 May 2002, Smileyq wrote: > [EMAIL PROTECTED] (Kris Vose) wrote: >> Can you practice function over-loading in php? > > No you cannot overload in PHP.
In a particularly masochistic project, we achieved function overloading by creating a global array $F that linked public to hidden names of all our functions. To overload, just change the hidden name. $F['list_items'] = 'main_list_items'; Then later, if we wanted to overload list_items, just do $F['list_items'] = 'substitute_list_items'; This functions would be called like: $F['list_items']($param1, $param2, $etc); It worked fine but sure took some getting used to. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php