Re: cvs: phpdoc /en/reference/misc/functions eval.xml
| From: | Hannes Magnusson | 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 UTCModified files:/phpdoc/en/reference/misc/functions eval.xmlLog: Added some words about how to mix HTML and PHP code within evalnot have to- later execution. + later execution. <parameter>code_str</parameter> doeslinkend="language.basic-syntax.phpmode">+ start with or contain <linkcan prepend+ PHP Opening tags</link>. If you want your given string to be + evaluated like regular PHP code with opening tags youCheers! Mike ---------------------------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, JG125, The Library, James Graham Building, Headingley Campus, Beckett Park,+ <parameter>code_str</parameter> with a closing tag. </simpara>LEEDS, LS6 3QS, United Kingdom Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm