how to find number of parameter of function in php

<?php
function bikash_args()
{
echo "Number of arguments: " . func_num_args() . "<br />";
for($i = 0 ; $i < func_num_args(); $i++) {
echo "Argument $i = " . func_get_arg($i) . "<br />";

$arg_list = func_get_args();
for ($i = 0; $i < $numargs; $i++) {
echo "Argument $i is: " . $arg_list[$i] . "
\n";

}
 }

bikash_args("a1", "b2", "c3", "d4", "e5");
?>

Comments

Popular posts from this blog

php format date string short month

curl service example in php