> -----Original Message-----
> From: Jean-Sébastien Goupil [mailto:[EMAIL PROTECTED] 
> Sent: 24 May 2006 13:52
> 
> Hi,
> 
> Seriously ? I translate that and I'm really wondering the truth about 
> that... Is it like
> 
> $code_str = '?><?php echo 'something'; ?>';
> 
> Or I'm just wrong and don't understand what you said ? It 
> makes no sense 
> for me to do that...
> Maybe it's good or just need a little rewording.

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>");

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