//Variable function
$func = 'foo';//Functions and method calls inside {$} work since PHP 5
echo "text1 {$func(44)} text2";
function foo($id)
{
echo "foo($id)";
}
output:
foo(44)text1 text2
The result of function parsed.
But result was parsed BEFORE any text.
How can I parse function BETWEEN text blocks?