PHP: Use an array value inside a here document

Just enclose your $user['name'] with curly brackets.

Example:

<?php
echo <<<END
Hello, my name is {$user['name']} and I live in {$user['country']}.
Today's date is $date.
END;
?>