PHP 8.2.20 Released!

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

andy at arakka dot co dot th
19 years ago
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>";
}
?>

<< Back to user notes page

To Top