method_exists
クラスメソッドが存在するかどうかを確認する
&reftitle.description;
boolmethod_exists
objectstringobject_or_class
stringmethod
指定した object_or_class にクラスメソッドが存在するかどうかを調べます。
&reftitle.parameters;
object_or_class
オブジェクトのインスタンス、あるいはクラス名。
method
メソッドの名前。
&reftitle.returnvalues;
method で指定したメソッドが
指定した object_or_class において定義されている場合に
&true;、そうでない場合に &false; を返します。
&reftitle.examples;
method_exists の例
]]>
&example.outputs;
staticメソッドに対する method_exists の例
]]>
&example.outputs;
&reftitle.notes;
¬e.uses-autoload;
&reftitle.seealso;
function_exists
is_callable
class_exists