On Fri, 13 Dec 2002, Dave [Hawk-Systems] wrote: ...
> <?PHP > function func($f_name){ > if(!function_exists($f_name)){ > # function doesn't exists, needs to be included > require('/path/to/functions/'.$f_name.'.php'); > }else{ > # function already exists, no action required > } > return $f_name; > } > > $database=call_user_func(func('DatabaseConnect'),'var1','var2'); > ?> > > But this results in code that isn't quite as intuitive. > > Thoughts? Comments? "You are nuts"? "You are nuts" (read the archives, this was discussed before) Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ ------------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php