I am using the following as an example posted on the php manual that should let me use the return value of a method call inside a string...
echo "This is the value of the var named by the return value of getName(): {${getName()}}";
function getName()
{
return "Bob";
}
However I get an error: "Notice: Undefined variable: Bob"
This example is from the php manual here: http://php.net/manual/en/language.types.string.php
Is the manual wrong or am i doing something wrong here?