Re: cvs: phpdoc /en/reference/misc/functions eval.xml

From: Date: Wed, 24 May 2006 14:50:57 +0000
Subject: Re: cvs: phpdoc /en/reference/misc/functions eval.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969373104@lists.php.net to get a copy of this message
On 5/24/06, Ford, Mike <M.Ford@leedsmet.ac.uk> wrote: [snip]
I agree, I think that addition is particularly impenetrable. However, what I *think* he's getting at is that it's possible to do things like:
        eval("?><p>Hello <em><?php echo $name ?>!</em></p>");
This will definitely not work as you intended, you probably want
single quotes there. -Hannes
Not sure how to describe that, though without getting as wordy as this addition is cryptic! Oliver Albers a écrit :
simp                Wed May 24 10:47:16 2006 UTC
Modified files:
    /phpdoc/en/reference/misc/functions     eval.xml
Log: Added some words about how to mix HTML and PHP code within eval
-     later execution.
+     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.
     </simpara>
Cheers! Mike ---------------------------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, JG125, The Library, James Graham Building, Headingley Campus, Beckett Park,
LEEDS, LS6 3QS,     United Kingdom
Tel: +44 113 283 2600 extn 4730    Fax: +44 113 283 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm


« previous php.doc (#969373104) next »