Re: concatenate?

From: Date: Wed, 29 Aug 2001 12:46:04 +0000
Subject: Re: concatenate?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-65010@lists.php.net to get a copy of this message
> does anyone know of a scenario (perhaps involving > non-string data) where the concatenation does not > return the same answer? If you have three vars: $user = "foo"; $users = array("Peter","Michael"); This could be a problem: echo "$users hair is brown"; if what you ment was: echo $string."s hair is brown"; // Peters hair is brown Regards, Søren PS: In Danish (I'm Danish) you write 'Peters hair' and not 'Peter's hair' which why I made this silly example :-)

« previous php.general (#65010) next »