RE: [PHP] string concatination
| From: | Chris W. Parker | Date: | Wed, 24 Mar 2004 00:03:03 +0000 |
| Subject: | RE: [PHP] string concatination | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181333@lists.php.net to get a copy of this message | ||
Matthew Oatham <mailto:matthewoatham@hotmail.com>
on Tuesday, March 23, 2004 3:59 PM said:
> Hi,
hi.
> What is the correct way, using php to join to strings, vars or other
> wise.
[snip]
> i.e. how do I join
>
> $string1 = "hello";
> $string2 = "world";
>
> do i do
>
> $string1 . $string2;
[snip]
> Is that correct?
that's correct except that the result won't go anywhere (but maybe you
already knew this?).
$string3 = $string1.$string2;
chris.