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

2001-12-23 Thread Philip Olson
> > "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

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

2001-12-23 Thread Philip Olson
> > > $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