On Tue, 28 Aug 2001 16:34:44 +0100, [EMAIL PROTECTED] (Seb Frost)
>$string0 = "hello";
>$string1 = "goodbye";
>$string2 = $string0 . " and " . $string1;
>result:        $string2 = "hello and goodbye"


$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?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to