Processing PHP within a string variable
| From: | Matt | Date: | Wed, 24 Jan 2001 21:56:37 +0000 |
| Subject: | Processing PHP within a string variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36491@lists.php.net to get a copy of this message | ||
On a project I am working on, I have a string variable, and inside the string is a mixture of PHP code and HTML. I want to be able to output the string with the PHP code inside the string processed. Right now the PHP isn't processed on output, it is merely cut out. I have been able to do this by writing the contents of the string to file and then including the file, however this is not a viable method for what I'm working on here. I was wondering if there is any way to output and process PHP code that is contained within a string?
Thanks.