From 933f6a47bc57857fc59b66754f64bbe5a2abc17b Mon Sep 17 00:00:00 2001 From: jim winstead Date: Sat, 8 Dec 2001 23:27:41 +0000 Subject: [PATCH] eval: minor cleanups, add ob-capture tip git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64301 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/misc.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/functions/misc.xml b/functions/misc.xml index 3100fdd28d..d30371fe56 100644 --- a/functions/misc.xml +++ b/functions/misc.xml @@ -1,5 +1,5 @@ - + Miscellaneous functions Misc. @@ -292,11 +292,10 @@ if (defined("CONSTANT")){ // Note that it should be quoted A return statement will terminate the evaluation of - the string immediatley. In PHP 4 you may use return - to return a value that will become the result of the - eval function while in PHP 3 - eval was of type void and did - never return anything. + the string immediately. In PHP 4, eval returns + &false; unless return is called in the evaluated + code, in which case the value passed to return is + returned. In PHP 3, eval does not return a value. @@ -315,17 +314,18 @@ echo $str; ?> ]]> - - The above example will show: - + + The above example will show: + - - + + + &tip.ob-capture;