I'm running into a weird issue where it seems I can't echo out an array value using heredoc syntax:
<?php
$arr = array(
array("string 1"),
array("string 2"),
array("string 3")
);
// string 3
echo $arr[2][0];
// Notice: Array to string conversion
// Var dump: string(8) "Array[0]"
echo <<<EOT
$arr[2][0]
EOT;
I feel like this is something I should know by now, but I can't find any reason why this is happening or how to solve it. Anyone willing to enlighten me?