[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
I just spotted this, so apologies if it's already been answered. PHP will try to treat first in $arr[first] as a constant. if it doesn't find a constant with this name it will treat it as a string. There may be an error reporting level which throws this up as an error. $arr['first'] is therefore

[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
I just spotted this, so apologies if it's already been answered. PHP will try to treat first in $arr[first] as a constant. if it doesn't find a constant with this name it will treat it as a string. There may be an error reporting level which throws this up as an error. $arr['first'] is therefore