文章列表
<?php
class aa {
private function echoP($name){
return $name;
}
private function echoMM($aa, $bb){
return array_merge($aa ,$bb);
}
}
$class = new ReflectionClass('aa');
$method = $class->getMethod('echoP');
$method->setAccessible(true);
$re = $method->invoke ...
<?php
function foo()
{
$numargs = func_num_args();
echo "Number of arguments: $numargs<br />\n";
if ($numargs >= 2) {
echo "Second argument is: " . func_get_arg(1) . "<br />\n";
}
$arg_list = func_get_args();
for ($i ...