Re: echoing two varibles(newbie)
| From: | Jason Teagle | Date: | Mon, 03 Jun 2002 09:26:03 +0000 |
| Subject: | Re: echoing two varibles(newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100379@lists.php.net to get a copy of this message | ||
<webmaster@tececo.com> wrote in message
news:001301c20ad8$5539f2f0$67b8fea9@JohnH...
>How can I echo(or include) two variables?
>
>ie include $DOCUMENT_ROOT then $row['location']
Simply refer to them within double quotes as if they were words:
echo "This is $DOCUMENT_ROOT at $row['location'].<BR>";
or bundle them together as a string:
echo "This is " . $DOCUMENT_ROOT . " at " . $row['location'] .
".<BR>";
You can shove as many variables as you like into the string like this...
--
--------------------------------------------
_ _
o o Jason Teagle
< jason@teagster.co.uk
v
--------------------------------------------