RE: [PHP] variable assign?
| From: | Boget, Chris | Date: | Wed, 08 Nov 2000 22:10:24 +0000 |
| Subject: | RE: [PHP] variable assign? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24399@lists.php.net to get a copy of this message | ||
> Hi everyone,
> How could I join 2 variable into 1, such as
> $data=mysql_fetch_row($result);
> $fname=$row('firstname');
> $lname=$row('Lastname');
> how could I combine $fname and $lname to become another
> variable $fullname?
$fullname = "$fname $lname";
OR
$fullname - $fname . " " . $lname;
Chris