Re: Echoing Variables Names
| From: | Greg Donald | Date: | Tue, 18 Jan 2005 04:01:30 +0000 |
| Subject: | Re: Echoing Variables Names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206612@lists.php.net to get a copy of this message | ||
On Mon, 17 Jan 2005 19:55:12 -0800, Phillip S. Baker
<phillipsbaker@gmail.com> wrote:
> I am generating some variable variables.
Don't use variable variables, use arrays.
> I am interested for testing purposes in finding out the names of the
> variables that are actually being generated. Since I want to make sure that
> that my following conditional statements are working properly and the values
> are set.
>
> So is there a way to print out the name of the variables?
print_r( $array );
--
Greg Donald
Zend Certified Engineer
http://destiney.com/