Re: concatenating with "." or ","

From: Date: Mon, 25 Aug 2008 15:53:58 +0000
Subject: Re: concatenating with "." or ","
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-278682@lists.php.net to get a copy of this message
On Mon, 2008-08-25 at 17:34 +0200, Yeti wrote: > That is why i love this list. Always something new to learn. > What I am still wondering about is if it is faster to use commas or > the "{}" brackets? ( I don't know how that technique is called, since > I'm not a walking dictionary) Here is the order of speed from fastest to slowest: commas - only useful if using echo or print . - concatenation "{$foo}" - interpolation of variables via double quotes <<< - heredoc Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#278682) next »