Monday, 19 March 2012

Q: what is func_num_args() and func_get_arg() in php ?


func_num_argsReturns the number of arguments passed to the function.
<?php
function foo()
{
    
$numargs func_num_args();
    echo 
"Number of arguments: $numargs\n";
}
foo(123);   
?>

3 comments:

  1. SEO Training in Chennai

    Thanks for sharing this information. SEO is one of the digital marketing techniques which is used to increase website traffic and organic search results. If anyone wants to get SEO Training Chennai visit FITA Academy located at Chennai. Rated as No.1 SEO Institutes in Chennai.

    SEO Training in Chennai | SEO Training Center in Chennai


    ReplyDelete