The notation is {}also useful for embedding multidimensional arrays in strings.
eg.
$array[1][2] = "square";
$text = "This $array[1][2] has two dimensions";
will be analyzed as
$text = "This " . $array[1] . "[2] has two dimensions";
and you will get the text
This Array[2] has two dimensions
But if you do
$text = "This {$array[1][2]} has two dimensions";
you will get the expected
This square has two dimensions.
source
share