> > "a $arr[foo] b"
> > "a {$arr['foo']} b"
> > 'a ' . $arr['foo'] . ' b';
> The first ist simply wrong. with $array[foo] PHP assumes foo is an
> constant with the value foo, which is not coorect when using 'strings'
> as indices.
Actually, it's not wrong. Constants are not looked for in stri
> > > $variables shoud be concatenated with '. instead of using "$var strng".
> > -1. I prefer "$var string".
>
> $var." string" is less ambigious. Actually it should be $var.' string' as
> "$var string" and '$var string' behave differently $var.' string' and $var."
> string" work the same.
-1 f