faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 8 people (25%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

How can I run PHP code that is in a string?

Sep 17th, 1999 02:06
Nathan Wallace, Lars Torben Wilson


Check out the eval function:

    eval('my php code');

    http://www.php.net/manual/function.eval.php3