Home > Archive > PHP Documentation > May 2006 > RE: [PHP-DOC] 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 |
RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
|
|
| Ford, Mike 2006-05-24, 7:59 am |
| > -----Original Message-----
> From: Jean-S=E9bastien Goupil [mailto:jsgoupil@gmail.com]=20
> Sent: 24 May 2006 13:52
>=20
> Hi,
>=20
> Seriously ? I translate that and I'm really wondering the truth about=20
> that... Is it like
>=20
> $code_str =3D '?><?php echo 'something'; ?>';
>=20
> Or I'm just wrong and don't understand what you said ? It=20
> makes no sense=20
> 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 addi=
tion is cryptic!
[color=darkred]
> Oliver Albers a =E9crit :
[color=darkred]
> not have to
> linkend=3D"language.basic-syntax.phpmode">
> can prepend
Cheers!
Mike
--------------------------------------------------------------------------=
--------------
Mike Ford, Electronic Information Services Adviser, Learning Support Servic=
es,
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
| |
| Hannes Magnusson 2006-05-24, 6:59 pm |
| On 5/24/06, Ford, Mike <M.Ford@leedsmet.ac.uk> wrote:
[snip]
> I agree, I think that addition is particularly impenetrable. However, wh=
at 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 ad=
dition is cryptic!
>
>
> Cheers!
>
> Mike
> ------------------------------------------------------------------------=
----------------
> Mike Ford, Electronic Information Services Adviser, Learning Support Serv=
ices,
> JG125, The Library, James Graham Building, Headingley Campus, Beckett Par=
k,
> 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 htt=
p://disclaimer.leedsmet.ac.uk/email.htm
>
|
|
|
|
|