Re: using . to concatenate strings ?

From: Date: Thu, 04 Dec 2003 08:54:48 +0000
Subject: Re: using . to concatenate strings ?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24120@lists.php.net to get a copy of this message
On Thu, 04 Dec 2003 09:47:29 +0100 Arnaud Limbourg <arnaud.limbourg.prestataire@cegetel.fr> wrote: > Hi all, > > i have a php question. > > What is the best way to go ? > > $str = 'text ' . $obj->myvar . ' extrat text'; > > or > > $str = "text {$obj->myvar} extrat text'; > > Does one have advantages over the other ? Non objective pov, I prefer the sooner for... readability (Oh My! I hate this word these days...) pierre

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