On 5/24/06, Ford, Mike <[EMAIL PROTECTED]> 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

Reply via email to