Re: Coding Std. [was: Re: [PHP-DOC] MySQL examples need review]

From: Date: Sun, 23 Dec 2001 20:42:19 +0000
Subject: Re: Coding Std. [was: Re: [PHP-DOC] MySQL examples need review]
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340320@lists.php.net to get a copy of this message
> > "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

« previous php.doc (#969340320) next »