Re: combining string values
| From: | Craig | Date: | Thu, 27 May 2004 09:57:47 +0000 |
| Subject: | Re: combining string values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187044@lists.php.net to get a copy of this message | ||
Concatenate using: .
<?php
$stringA = "Hello from";
$stringB = "over here!";
$stringC = $stringA . " " . $stringB;
?>
HTH
Craig
"Tommy Atherton" <appc47@dsl.pipex.com> wrote in message
news:000001c44339$1070eed0$0200a8c0@TRRM...
> hi
>
> I have a problem, I'm trying to combine the value of two strings
> together into a final string. For example
>
> $path = '/tmp/photos/';
> $filename = 'pic1.jpg';
>
> $finalvalue = $path + $filename; (I know that the + is not used its
> there for explanation only)
>
> The value for path will remain constant (for the time being at least
> although) but the value for filename will be read from a database so
> that will change.
>
> Anyone care to help???
>
> thanks in advance
>
> Tommy
>
>
>