Re: output the var $ name
| From: | Carroll Barrett | Date: | Tue, 27 Jun 2000 14:55:38 +0000 |
| Subject: | Re: output the var $ name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3345@lists.php.net to get a copy of this message | ||
Matthew,
echo "The variable \$foo = $foo";
Regards,
Carroll Barrett
-----Original Message-----
From: Matthew M. Boulter <mboulter@uq.net.au>
To: PHP-General (List) <php-general@lists.php.net>
Date: Tuesday, June 27, 2000 3:32 AM
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
>