note 20315 added to function.func-num-args

From: Date: Fri, 29 Mar 2002 17:05:31 +0000
Subject: note 20315 added to function.func-num-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-28388@lists.php.net to get a copy of this message
The idea of func_get_args() is to construct functions of variable number of parameters like function var_param_func(){ if(func_num_args()==0){ //do one thing } if(func_num_args()==1) //do another thing //get the args with func_get_args() } } -- http://www.php.net/manual/en/function.func-num-args.php http://master.php.net/manage/user-notes.php?action=edit+20315 http://master.php.net/manage/user-notes.php?action=delete+20315 http://master.php.net/manage/user-notes.php?action=reject+20315

« previous php.notes (#28388) next »