Re: cvs: phpdoc /en/reference/misc/functions eval.xml
| From: | Philip Olson | Date: | Mon, 09 Jun 2003 19:31:48 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/misc/functions eval.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354364@lists.php.net to get a copy of this message | ||
<function>return</function> is how it's done, just like
<function>include</function>, <function>print</function>, etc.
Have a look at php.net/eval and notice it links to the return
docs. In conclusion: this should be reverted ;)
Regards,
Philip
On Mon, 9 Jun 2003, Damien Seguy wrote:
> dams Mon Jun 9 15:18:08 2003 EDT
>
> Modified files:
> /phpdoc/en/reference/misc/functions eval.xml
> Log:
> return is not a function
>
> Index: phpdoc/en/reference/misc/functions/eval.xml
> diff -u phpdoc/en/reference/misc/functions/eval.xml:1.3
> phpdoc/en/reference/misc/functions/eval.xml:1.4
> --- phpdoc/en/reference/misc/functions/eval.xml:1.3 Sat Sep 28 15:05:35 2002
> +++ phpdoc/en/reference/misc/functions/eval.xml Mon Jun 9 15:18:08 2003
> @@ -1,5 +1,5 @@
> <?xml version="1.0" encoding="iso-8859-1"?>
> -<!-- $Revision: 1.3 $ -->
> +<!-- $Revision: 1.4 $ -->
> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.58 -->
> <refentry id="function.eval">
> <refnamediv>
> @@ -34,8 +34,8 @@
> <simpara>
> A <literal>return</literal> statement will terminate the evaluation of
> the string immediately. In PHP 4, <function>eval</function> returns
> - &null; unless <function>return</function> is called in the evaluated
> - code, in which case the value passed to <function>return</function> is
> + &null; unless <literal>return</literal> is called in the evaluated
> + code, in which case the value passed to <literal>return</literal> is
> returned. In PHP 3, <function>eval</function> does not return a value.
> </simpara>
> <para>
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>