For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2006 > cvs: phpdoc /en/reference/misc/functions eval.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/misc/functions eval.xml
Oliver Albers

2006-05-24, 6:59 pm

simp Wed May 24 15:18:38 2006 UTC

Modified files:
/phpdoc/en/reference/misc/functions eval.xml
Log:
rewording to simplify the text
thanks for the hint :)


http://cvs.php.net/viewcvs.cgi/phpd...5&diff_format=u
Index: phpdoc/en/reference/misc/functions/eval.xml
diff -u phpdoc/en/reference/misc/functions/eval.xml:1.14 phpdoc/en/reference/misc/functions/eval.xml:1.15
--- phpdoc/en/reference/misc/functions/eval.xml:1.14 Wed May 24 10:47:16 2006
+++ phpdoc/en/reference/misc/functions/eval.xml Wed May 24 15:18:38 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<!-- splitted from ./en/functions/misc.xml, last change in rev 1.58 -->
<refentry id="function.eval">
<refnamediv>
@@ -17,10 +17,8 @@
<parameter>code_str</parameter> as PHP code. Among other things,
this can be useful for storing code in a database text field for
later execution. <parameter>code_str</parameter> does not have to
- start with or contain <link linkend="language.basic-syntax.phpmode">
- PHP Opening tags</link>. If you want your given string to be
- evaluated like regular PHP code with opening tags you can prepend
- <parameter>code_str</parameter> with a closing tag.
+ contain <link linkend="language.basic-syntax.phpmode"> PHP Opening
+ tags</link>.
</simpara>
<simpara>
There are some factors to keep in mind when using
@@ -28,7 +26,8 @@
be valid PHP code, including things like terminating statements
with a semicolon so the parser doesn't die on the line after the
<function>eval</function>, and properly escaping things in
- <parameter>code_str</parameter>.
+ <parameter>code_str</parameter>. To mix HTML output and PHP code
+ you can use a closing PHP tag to leave PHP mode.
</simpara>
<simpara>
Also remember that variables given values under
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com