Home > PHP > Function > Function Handling > func_num_args()

func_num_args()

func_num_args - Returns the number of arguments passed to the function

Syntax

int func_num_args ()

Arguments

-

Description

Gets the number of arguments passed to the function.

Version

PHP 4, 5

Return value

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