RE: [PHP] putting the result of PHP code into a string

2001-11-10 Thread power jessie
$id = 2; $code = "" . Func1($id) . "" $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 resul

Re: [PHP] putting the result of PHP code into a string

2001-11-10 Thread Morten Gjetanger
Ok. Maybe a bad example. But what if it's a function, e.g. $id = 2; $code = "" $html = someFunction($code); Now, $html should contain "{the result of the Func1 function}" The reason why I want this is that I have a site where all the text on each side lies in a MySQL database, and I have a php

Re: [PHP] putting the result of PHP code into a string

2001-11-09 Thread Jason Stechschulte
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 = ""; > $html = someFunction($code); > > After this i want $html to contain "Test1 $var = "Test1"; $cod

[PHP] putting the result of PHP code into a string

2001-11-09 Thread Morten Gjetanger
I'm quite sure there is a simple solution to the problem bellow! I like to evaluate som PHP code, but I want the result to be putted into a string. example: $var = "Test1"; $code = ""; $html = someFunction($code); After this i want $html to contain "Test1 I've checked the eval function, but i