Re: Re: Execute statements from a string???
| From: | Maxim Maletsky | Date: | Tue, 22 Oct 2002 15:02:50 +0000 |
| Subject: | Re: Re: Execute statements from a string??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120921@lists.php.net to get a copy of this message | ||
"Shawn McKenzie" <nospam@mckenzies.net> wrote... :
> Thanks for the answers!
>
> Next question. How can I structure the string and how do I echo the HTML and
> the variable contents? I want the following output to the browser:
> <td>Hello...</td>
>
> $somevar = "Hello...";
>
> $string = "<td><?php echo $somevar ?></td>\n";
> or
> $string = "<td>$somevar</td>\n";
>
> eval() ???
let's say: you get *any* PHP code and stick it within eval('code') so,
then it gets executed. But, why on the earth do you need it?
Tell us your story, from begining to the end :)
---
Maxim Maletsky
maxim@php.net
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3