> > "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 strings. So, no E_NOTICE is created. Regards, Philip Olson