Re: concatenating with "." or ","

From: Date: Mon, 25 Aug 2008 15:09:05 +0000
Subject: Re: concatenating with "." or ","
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-278676@lists.php.net to get a copy of this message
Good, understood. To deepen (for me): why does this: echo '<p>$_POST[\'SNGstep\']='.var_dump($_POST['SNGstep']).'^</p>'."\n"; spit out: "NULL <p>$_POST['SNGstep']=^</p>" while this: echo '<p>$_POST[\'SNGstep\']=',var_dump($_POST['SNGstep']),'^</p>'."\n"; spits out: "<p>$_POST['SNGstep']=NULL ^</p>" ? I think it must be related to something Maciek was showing in his excellent example, but I am too green to see. On Aug 25, 2008, at 7:48 AM, Thiago Melo de Paula wrote:
Govinda, please, consider the following code: <?php $brandA = 'Porshe'; $brandB = 'Jaguar'; $testA = $branA . $brandB; //testA will have the value PorsheJaguar $testB = $branA , $brandB; //Returns a Parse error: syntax error, unexpected ',' in /test.php on line 7 ?>


« previous php.general (#278676) next »