note 52762 modified in function.func-num-args by danbrown

From: Date: Sat, 19 Jul 2008 21:53:13 +0000
Subject: note 52762 modified in function.func-num-args by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141771@lists.php.net to get a copy of this message
func_num_args() can be used in conjunction with named arguments, also. For example: <?php function DebugShow( $label, $value ) { echo "# " . $label ; if ( func_num_args() > 1 ) echo " = " . $value ; echo "<br>"; } ?> --was-- func_num_args() can be used in conjunction with named arguments, also. For example: function DebugShow( $label, $value ) { echo "# " . $label ; if ( func_num_args() > 1 ) echo " = " . $value ; echo "<br>"; } http://php.net/manual/en/function.func-num-args.php

« previous php.notes (#141771) next »