${txt}
\n"; } else { print "No documentation available.
\n"; } } if ($rs[1]->faultCode()) { display_error($rs[1]); } else { print "\n";
// note: using PhpXmlRpc\Encoder::decode() here would lead to cleaner code
$val = $rs[1]->value();
if ($val->kindOf() == "array") {
foreach ($val as $x) {
$ret = $x[0];
print "" . $ret->scalarval() . " "
. $methodName->scalarval() . "(";
if ($x->count() > 1) {
for ($k = 1; $k < $x->count(); $k++) {
$y = $x[$k];
print $y->scalarval();
if ($k < $x->count() - 1) {
print ", ";
}
}
}
print ")
\n";
}
} else {
print "Signature unknown\n";
}
print "