Re: concatenate vars?
| From: | Philip Olson | Date: | Thu, 22 Feb 2001 20:17:14 +0000 |
| Subject: | Re: concatenate vars? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41210@lists.php.net to get a copy of this message | ||
> I need to combine two variables which are set to two form field values and
> will be put into $from of mail(). Should it be $from = "$varOne . $varTwo"
> ?
Check out :
Using Strings :
---------------------------------------------------------
http://www.zend.com/zend/tut/using-strings.php
PHP Manual : Strings :
---------------------------------------------------------
http://www.php.net/manual/en/language.types.string.php
The above will explain everything. The following will work :
$var_a = 'the';
$var_b = 'dog';
$from = $var_a . $var_b; // thedog
$from = $var_a . ' big ' . $var_b; // the big dog
Regards,
Philip Olson
http://www.cornado.com/