Given this setup
$names = array('Smith', 'Jones', 'Jackson');
I understand that this works:
echo "Citation: {$names[1]}[1987]".PHP_EOL; //Citation: Jones[1987]
PHP through the complex syntax with curly braces, is pulling the value of the second element on the array and the [1987] is just another text...
But in the next code:
echo "Citation: $names[1][1987]".PHP_EOL;
I'd expect an error, I'd expect PHP interprets it as a two dimensional array and thrown an error, but instead it gave me same output that the code above "Citation: Jones[1987]"
Why is that?