cvs: phpdoc /en/reference/classobj/functions method-exists.xml

From: Date: Tue, 16 Oct 2007 10:01:35 +0000
Subject: cvs: phpdoc /en/reference/classobj/functions method-exists.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-230@lists.php.net to get a copy of this message
rquadling Tue Oct 16 10:01:35 2007 UTC Modified files: /phpdoc/en/reference/classobj/functions method-exists.xml Log: Fix: #42979 - Added example to show the usage for method_exists with a static method. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/classobj/functions/method-exists.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/classobj/functions/method-exists.xml diff -u phpdoc/en/reference/classobj/functions/method-exists.xml:1.8 phpdoc/en/reference/classobj/functions/method-exists.xml:1.9 --- phpdoc/en/reference/classobj/functions/method-exists.xml:1.8 Wed Jun 20 22:24:16 2007 +++ phpdoc/en/reference/classobj/functions/method-exists.xml Tue Oct 16 10:01:35 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>method_exists</refname> @@ -68,6 +68,23 @@ ]]> </screen> </example> + <example> + <title>Static <function>method_exists</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$directory = new Directory('.'); +var_dump(method_exists('Directory','read')); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +bool(true) +]]> + </screen> + </example> </para> </refsect1> <refsect1 role="seealso">

« previous php.doc.cvs (#230) next »