Ok. Maybe a bad example. But what if it's a function, e.g.
$id = 2;
$code = td?php echo Func1($id) ?/td
$html = someFunction($code);
Now, $html should contain td{the result of the Func1 function}/td
The reason why I want this is that I have a site where all the text on each
side lies in a
$id = 2;
$code = td . Func1($id) . /td
$html = someFunction($code);
hope that helps!
jessie
-Original Message-
From: Morten Gjetanger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 10, 2001 1:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] putting the result of PHP code into a
On Fri, Nov 09, 2001 at 10:33:39PM +0100, Morten Gjetanger wrote:
I like to evaluate som PHP code, but I want the result to be putted into a
string.
example:
$var = Test1;
$code = td?php echo $var1?/td;
$html = someFunction($code);
After this i want $html to contain tdTest1/td
$var =
3 matches
Mail list logo