PHP Knowledge Base

Double-quoted strings and complex variables (array or object property)

Examples

Arrays
$baz = array("value" => "foo");
echo "this is {$baz['value']} !"; // this is foo !
$_SESSION variables1
echo("{$_SESSION['test']}"."<br>");
NULL