Re: output the var $ name

From: Date: Tue, 27 Jun 2000 13:52:50 +0000
Subject: Re: output the var $ name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3334@lists.php.net to get a copy of this message
Try: <?php echo "The variable \$foo equals: $foo"; ?> ----- Original Message ----- From: Matthew M. Boulter <mboulter@uq.net.au> To: PHP-General (List) <php-general@lists.php.net> Sent: Tuesday, June 27, 2000 9:11 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 >

« previous php.general (#3334) next »