Re: Re: concatenating with "." or ","

From: Date: Mon, 25 Aug 2008 08:18:38 +0000
Subject: Re: Re: concatenating with "." or ","
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-278637@lists.php.net to get a copy of this message
On Mon, 2008-08-25 at 11:08 +0300, Nitsan Bin-Nun wrote: > Gosh, what a smart ass! > The comma can also concatenate string! > You may want to run the following lines: > <?php > $a = 3; > $b = 5; > echo $a, "abc", $b; > ?> This is not concatenation it is argument separation. No string is concatenated. The output may appear concatenated, but no concatenation occurred, merely the output of each argument occurred in sequence. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#278637) next »