(PHP 5, PHP 7, PHP 8)
ReflectionMethod::isPrivate — 檢查方法是否為私有
檢查方法是否為私有。
此函式沒有參數。
如果方法是私有的,則回傳 true,否則回傳 false
true
false