Index: method-exists.xml =================================================================== RCS file: /repository/phpdoc/en/reference/classobj/functions/method-exists.xml,v retrieving revision 1.7 diff -p -u -r1.7 method-exists.xml --- method-exists.xml 14 Jan 2007 15:10:19 -0000 1.7 +++ method-exists.xml 3 Apr 2007 06:52:19 -0000 @@ -9,12 +9,19 @@ &reftitle.description; boolmethod_exists - objectobject + mixedvar stringmethod_name - Checks if the class method exists in the given - object. + Checks if the class method exists in the given class or object + var. + + + + + In PHP4, this function only accepts instances, not class names. + + @@ -22,10 +29,10 @@ - object + var - An object instance + An object instance or class name @@ -44,7 +51,7 @@ &reftitle.returnvalues; Returns &true; if the method given by method_name - has been defined for the given object, &false; + has been defined for the given object or class var, &false; otherwise. @@ -52,7 +59,7 @@ &reftitle.examples; - <function>method_exists</function> example + <function>method_exists</function> object example + + <function>method_exists</function> class example + + +]]> + + &example.outputs; + + + +