faqts : Computers : Programming : Languages : PHP : kms : Functions

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

2 of 2 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

How can I insert a scriptlet within an echo() function and still have that script run?

Dec 5th, 2004 06:05
Matthew Wilkinson, Jenny Knowles,


You could probably use PHP's function for evaluating strings, eval().
Is this the kind of stuff you wanted:
echo (eval("Some Kind Of PHP Script Here") . "Whatever else you want");
http://php.net/manual/en/function.eval.php