Re: how to...concatenate variables

From: Date: Mon, 14 Apr 2003 15:49:33 +0000
Subject: Re: how to...concatenate variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143792@lists.php.net to get a copy of this message
> $history_new =$nowdate: .$historytoday .$history; As far as I can tell, it's only the colon. The syntax should be: $history_new = $nowdate . ": " . $historytoday . $history; or $history_new = "$nowdate: $historytoday $history"; You probably should have gotten an error message that said something like 'unexpected colon' or some such. When you get that, take a look at the line number supplied and then weed out the not-so-nice character.

« previous php.general (#143792) next »