getMethods();
$str = "";
foreach ($oMetHods as $oMetHodsRow) {
if ($oMetHodsRow->class == $sClassPath) {
// 有like时只提取like到的,无like时得到所有
if ($sLike) {
$string = "Hello, world!";
$character = "o";
if (stripos($oMetHodsRow->name, $sLike) !== false) {
$str .= "
";
$str .= $oMetHodsRow->name;
}
} else {
$str .= "
";
$str .= $oMetHodsRow->name;
}
}
}
return $str;
}
public function refLike($aParam)
{
$sClassName = $aParam["aArg"][1] ?? false;
$sLike = $aParam["aArg"][2] ?? false;
if (!$sClassName) {
return "需要arg[1],类名。";
}
if (!$sLike) {
return "需要arg[2],like。";
}
return $this->Ref($aParam);
}
// public function ref()
// {
// $oRef = new \ReflectionClass($this);
// $oMetHods = $oRef->getMethods();
//
// tomd($oMetHods, 1);
// }
}