©
本文档使用
php.cn手册 发布
(PECL parsekit >= 0.3.0)
parsekit_func_arginfo — Return information regarding function argument(s)
$function
)此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。
function
A string describing a function, or an array describing a class/method.
Returns an array containing argument information.
Example #1 parsekit_func_arginfo() example
<?php
function foo ( $bar , stdClass $baz , & $bomb , $bling = false ) {
}
var_dump ( parsekit_func_arginfo ( 'foo' ));
?>
以上例程会输出:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
[#1] fantasysportswire at yahoo dot com [2007-03-04 11:03:07]
Should be noted that this is for user defined functions only. Not internal (extension or otherwise).