|
Posted by Ju Hui on 11/19/15 11:47
thanks all your reply.
But the answer isn't what I want.
I know function eval(), it will execute the string pass to the function
as php script.
but my requirement is .
$a is a string, it will retrive from db.
I want to insert some php script to the $a, like {php}{/php} in Smarty
of PHP. The code with special tag will be processed as php script.
like
[code]
$b=1;
$a="result,<? if ($b==1) echo \"b=1\" ?>";
print $a
[/code]
I want to get result,b=1.
thanks .
Navigation:
[Reply to this message]
|