svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml

From: Date: Sun, 23 Aug 2009 00:25:20 +0000
Subject: svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4745@lists.php.net to get a copy of this message
takagi Sun, 23 Aug 2009 00:25:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287585 Log: moved the second example into the appropriate position. Changed paths: U phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml Modified: phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml =================================================================== --- phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml 2009-08-22 23:28:34 UTC (rev 287584) +++ phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml 2009-08-23 00:25:20 UTC (rev 287585) @@ -61,8 +61,43 @@ </tgroup> </informaltable> </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; <para> + Generates a warning if called from outside of a user-defined function. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> <example> + <title><function>func_num_args</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +function foo() +{ + $numargs = func_num_args(); + echo "Number of arguments: $numargs\n"; +} + +foo(1, 2, 3); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Number of arguments: 3 +]]> + </screen> + </example> + </para> + <para> + <example> <title><function>func_num_args</function> example before and after PHP 5.3</title> <programlisting role="php"> @@ -107,41 +142,6 @@ </para> </refsect1> - <refsect1 role="errors"> - &reftitle.errors; - <para> - Generates a warning if called from outside of a user-defined function. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>func_num_args</function> example</title> - <programlisting role="php"> -<![CDATA[ -<?php -function foo() -{ - $numargs = func_num_args(); - echo "Number of arguments: $numargs\n"; -} - -foo(1, 2, 3); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Number of arguments: 3 -]]> - </screen> - </example> - </para> - </refsect1> - <refsect1 role="notes"> &reftitle.notes; &note.funcnoparam;

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