(PHP 5, PHP 7, PHP 8)
ReflectionMethod::isPublic — 判斷方法是否是公開方法
判斷方法是否是公開方法
此函數沒有參數。
公開方法返回 true,否則返回 false
true
false