In PHP, you can embed an array directly in a (double-quoted) string, but it looks like there are two ways to do it; for example:
$arr[0]="foobar";
echo "${arr[0]}";
echo "{$arr[0]}";
They both seem to work, but what is the difference? Is either better?
(It’s frustratingly difficult to look this up due to Google’s lack of special-character support, but I have seen both formats in use.)