cvs: phpdoc /en/functions misc.xml

From: Date: Sat, 08 Dec 2001 23:27:41 +0000
Subject: cvs: phpdoc /en/functions misc.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339579@lists.php.net to get a copy of this message
jimw Sat Dec 8 18:27:41 2001 EDT Modified files: /phpdoc/en/functions misc.xml Log: eval: minor cleanups, add ob-capture tip Index: phpdoc/en/functions/misc.xml diff -u phpdoc/en/functions/misc.xml:1.60 phpdoc/en/functions/misc.xml:1.61 --- phpdoc/en/functions/misc.xml:1.60 Tue Nov 20 18:58:45 2001 +++ phpdoc/en/functions/misc.xml Sat Dec 8 18:27:41 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.60 $ --> +<!-- $Revision: 1.61 $ --> <reference id="ref.misc"> <title>Miscellaneous functions</title> <titleabbrev>Misc.</titleabbrev> @@ -292,11 +292,10 @@ </simpara> <simpara> A <literal>return</literal> statement will terminate the evaluation of - the string immediatley. In PHP 4 you may use <literal>return</literal> - to return a value that will become the result of the - <function>eval</function> function while in PHP 3 - <function>eval</function> was of type <literal>void</literal> and did - never return anything. + the string immediately. In PHP 4, <function>eval</function> returns + &false; unless <function>return</function> is called in the evaluated + code, in which case the value passed to <function>return</function> is + returned. In PHP 3, <function>eval</function> does not return a value. </simpara> <para> <example> @@ -315,17 +314,18 @@ ?> ]]> </programlisting> - <para> - The above example will show: - <screen> + <para> + The above example will show: + <screen> <![CDATA[ This is a $string with my $name in it. This is a cup with my coffee in it. ]]> - </screen> - </para> + </screen> + </para> </example> </para> + &tip.ob-capture; </refsect1> </refentry>

« previous php.doc (#969339579) next »