Is there a way to evaluate an expression right inside of a PHP string?
In Perl you can do a trick with creating a reference to an array and then dereferencing it right away. When Perl interpolates the string it will compute the expression inside the array reference:
"string @{[2+2]} string"
and it will evaluate 2+2 inside of a string.
What about PHP. Is there such construct in PHP that lets you evaluate expressions inside of a string (through interpolation)?