Re: coding standards - draft

From: Date: Fri, 28 Dec 2001 18:03:56 +0000
Subject: Re: coding standards - draft
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340425@lists.php.net to get a copy of this message
> > concatenation makes code unreadable > I disagree on that. I think strinc concatenation makes the code more > readble, because of the face, that what a variable is is clearly > separated from what the string is. > > echo "bar is $bar"; > vs. > echo 'bar is '.$bar; > > additionaly in the first version $bar will be automagically transformed > into a string, which is not nessecary. In the second version, you used the . operator, which also automagically transforms $bar into a string for that operation, there is no difference between the two in this aspect, echo needs string[s] to print out. :) We'll see what others think... Goba

« previous php.doc (#969340425) next »