Returns the number of arguments passed to the function.
Example-
function countArguments(){
$numargs = func_num_args();
echo "Number of arguments: $numargs\n";
}
echo countArguments(1, 2, 3);
Output
3
Copyright ©2022 coderraj.com. All Rights Reserved.