Hello!
I want to get the parameters of an internal php function and have tried
to use the new reflection classes introduced in PHP5. This is what I've
done:
<?php
$funcArr = get_defined_functions();
echo $funcArr["internal"][5] . "\r";
$ref = new ReflectionFunction($funcArr["internal"][5]);
echo $ref;
foreach ($ref->getParameters() as $i => $param)
{
printf("-- Parameter #%d: %s \n" $i, $param->getName());
}
?>
this outputs:
strcmp Function [ public function strcmp ] { }
that output is only done by the two echo:s. There is nothing outputed
by the foreach loop.
Thanks in advance!