note 26983 added to function.func-num-args

From: Date: Tue, 19 Nov 2002 16:30:44 +0000
Subject: note 26983 added to function.func-num-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-39703@lists.php.net to get a copy of this message
With following script I want show that you can give some param in the description (like Test2()) <? function Test1() { echo " <ul> <li> func_num_args : ".func_num_args()."</li> <li> func_get_args : "; print_r(func_get_args()); echo " </li> </ul>"; } function Test2($hello) { echo " <ul> <li>func_num_args :".func_num_args()."</li> <li>hello :".$hello."</li> <li>func_get_args"; print_r(func_get_args()); echo " </li> </ul>"; } $one = " 1 "; $two = " 2 "; echo " <OL> <LI>",Test1(),"</LI> <LI>This is erronous : <br> ",Test2(),"</LI> <LI>",Test1($one),"</LI> <LI>",Test2($one),"</LI> <LI>",Test1($one,$two),"</LI> <LI>",Test2($one,$two),"</LI> </OL> "; ?> -- http://www.php.net/manual/en/function.func-num-args.php http://master.php.net/manage/user-notes.php?action=edit+26983 http://master.php.net/manage/user-notes.php?action=delete+26983 http://master.php.net/manage/user-notes.php?action=reject+26983

« previous php.notes (#39703) next »