say,string is:
$str=\"abcdefg foo() hijklmopqrst\";
How to let php call foo() and insert the return string to this string?
function foo() { return 'Hi'; } $my_foo = 'foo'; echo "{$my_foo()}";