Re: concatenate?

From: Date: Wed, 29 Aug 2001 12:17:18 +0000
Subject: Re: concatenate?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64998@lists.php.net to get a copy of this message
On Tue, 28 Aug 2001 16:34:44 +0100, seb@raceshoot.com (Seb Frost) wrote: >$string0 = "hello"; >$string1 = "goodbye"; > >$string2 = $string0 . " and " . $string1; > >result: $string2 = "hello and goodbye" also, $string2="$string1 and $string2"; i'm not sure if there are subtleties there that make this not as good as the preceding answer. generally i go with this one since it's shorter and is, for me, more readable. does anyone know of a scenario (perhaps involving non-string data) where the concatenation does not return the same answer? tiger

« previous php.general (#64998) next »