Home Menu

func_num_args

Returns the number of arguments passed to the function

Syntax

func_num_args ( void ) : int

Return

Returns the number of arguments passed into the current user-defined function.

Examples

<?

function myfunction() {
    $return = func_num_args();
    
    echo $return;
}

myfunction("a", "b", "c");   

?>
3

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms