Home > Backend Development > PHP Tutorial > php 获取可变函数参数的函数_PHP

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

WBOY
Release: 2016-06-01 12:22:36
Original
780 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template