Re: output the var $ name
| From: | Matthew M. Boulter | Date: | Tue, 27 Jun 2000 08:48:32 +0000 |
| Subject: | Re: output the var $ name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3297@lists.php.net to get a copy of this message | ||
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.
----- Original Message -----
From: "Gustafson, Mårten" <marten@jerbro.se>
To: "'Matthew M. Boulter'" <mboulter@uq.net.au>
Sent: Tuesday, June 27, 2000 6:14 PM
Subject: RE: [PHP-GENERAL] output the var $ name
> You really should read through the manual, especially chapter 1 "Getting
> started" and chapter 2 "Language Reference".
> The manual can be found at: http://www.php.net/manual
>
>
> <?
> $foo = 'bar';
> echo 'The variable $foo equals: '.$foo;
> ?>
>
>
> --marten
>
> > -----Original Message-----
> > From: Matthew M. Boulter [mailto:mboulter@uq.net.au]
> > Sent: Tuesday, June 27, 2000 10:12 AM
> > To: PHP-General (List)
> > Subject: [PHP-GENERAL] output the var $ name
> >
> >
> > Hiya!
> >
> > If I've got a variable declared like this:
> >
> > $foo = "bar";
> >
> > and want the output to look like:
> >
> > "The variable $foo equals: bar"
> >
> > what would I do?
> >
> > Thanx
> > --------------------------------------------------------------
> > ------------
> > Matthew M. Boulter email: mboulter@uq.net.au
> > Conceptua Media Developments mobile: 0414-912-501
> > (for the University of Queensland)
> > --------------------------------------------------------------
> > ------------
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>