http://www.php.net/manual/en/function.eval.php
Kirk
> -Original Message-
> From: Christopher Raymond [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 09, 2001 1:11 PM
> To: PHP List
> Subject: Re: [PHP] Eval()??? A variables contents?
>
>
> on 11/9/01
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL PROTECTED] wrote:
> What you're doing doesn't make any sense. If it were to work, it would look
> like the following:
>
> ; ?>,
>
> or something similar. I think what you want to do is:
> $content = query_database($category);
> echo $content;
> ?>
>
I just asked a similar question yesterday. The answer is, conveniently
enough, eval().
One trick from the php.net page on the function is to do somehting like
this:
$content = "";
echo eval ("?>$content");
Christopher Raymond wrote:
>
> PHP Gurus:
>
> I have one for you. I'm sure there is a
On Friday 09 November 2001 11:51 am, Christopher Raymond wrote:
> Let's say I have:
>
> $content = "";
>
>
> If I use , it doesn't evaluate that content. What am
> I doing wrong here?
What you're doing doesn't make any sense. If it were to work, it would look
like the following:
; ?>,
or som
4 matches
Mail list logo