Re: output the var $ name
| From: | David Robley | Date: | Wed, 28 Jun 2000 02:58:17 +0000 |
| Subject: | Re: output the var $ name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3493@lists.php.net to get a copy of this message | ||
On 27 Jun, Matthew M. Boulter wrote:
about echo 'The variable $foo equals: '.$foo;
> Wouldn't that output
>
> The variable bar equals: bar
>
> not actually
>
> The variable $foo equals: bar
>
> I want to delimit the parser from parsing the variable when I'm describing
> it's name.
>
If you check out www.php.net/manual/language.types.string.php or your
favourite mirror, you'll see among other things that variables aren't
expanded inside single quotes.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA