Home >php教程 >php手册 >php 获取可变函数参数的函数

php 获取可变函数参数的函数

WBOY
WBOYOriginal
2016-06-13 12:21:51909browse

func_num_args() 返回传递给该函数参数的个数

func_get_arg($arg_num) 取得指定位置的参数值,$arg_num位置index从0开始n-1。

func_get_args() 返回包含所有参数的数组

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn