Re: svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml
| From: | Lars Torben Wilson | Date: | Wed, 26 Aug 2009 06:13:53 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-4758@lists.php.net to get a copy of this message | ||
2009/8/22 TAKAGI Masahiro <takagi@php.net>:
> 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.
Good catch. Thanks!
Regards,
Torben
> 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;
> ¬e.funcnoparam;
>
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>