Re: which one is faster

From: Date: Tue, 05 Oct 2010 19:28:17 +0000
Subject: Re: which one is faster
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-308484@lists.php.net to get a copy of this message
Benchmark and find out! :) What are you using this for? Unless you are doing something crazy it probably doesn't matter, and you should pick whichever you feel looks nicer / is easier to code in / etc. Chris H. On Tue, Oct 5, 2010 at 3:23 PM, saeed ahmed <saeed.sas@gmail.com> wrote: > $a = 'hey'; > $b = 'done'; > > $c = $a.$b; > $c = "$a$b"; > > which one is faster for echo $c. >

« previous php.general (#308484) next »