【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:code4.12.php绩等信息,祝愿广大网友取得需要的信息,参考学习。
<?php
function Yound($chinese, $math, $english) {}
function Joy($chinese, $math, $english) {}
function ruirui(ReflectionFunction $chinese, $math = 95, $english = null) {}
function Studentresult() {}
$reflect = new ReflectionFunction(Yound);
echo $reflect;
foreach ($reflect->getParameters() as $i => $param)
{
printf( "-- Parameter #%d: %s {<br>".
" Class: %s<br>".
" Allows NULL: %s<br>".
" Passed to by reference: %s<br>".
" Is optional?: %s<br>".
"}<br>",
$i,
$param->getName(),
var_export($param->getClass(), 1),
var_export($param->allowsNull(), 1),
var_export($param->isPassedByReference(), 1),
$param->isOptional() ? 'yes' : 'no');
}
?>
上一篇:
code4.11.php
下一篇:
成本管理背景指导