Re: using . to concatenate strings ?

From: Date: Thu, 04 Dec 2003 09:04:06 +0000
Subject: Re: using . to concatenate strings ?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24123@lists.php.net to get a copy of this message
I prefer the first solution since it's clear which parts are handled as variable-names and which are handled as test. Mixing text and variables (evaluation of variable names "inside" a string does work - but in my oppinion it makes the sourcecode less readable, manageable and leads to more errors. With the var-in-string-solution there are also other drawbacks like problems with syntax highlighting etc. Hehe - one funny example - what output do you expect? echo $a-$b; echo "$a-$b"; :-))
Hehe true. Ok, i prefer the first one as well. I was just wondering ;) I didn't expect so many answers so fast :) thanks guys ! Arnaud.

« previous php.pear.dev (#24123) next »