faqts : Computers : Programming : Languages : PHP : Function Libraries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 32 people (78%) answered Yes
Recently 6 of 9 people (67%) answered Yes

Entry

Is there a php function that can list all the current scripts $variables?

Mar 2nd, 2000 12:37
Matt Gregory, Alexey Ilyin, Paul Routledge, unknown unknown,


There is $GLOBALS array that holds all global $variables as usual: 
name->value. Very useful %)
Other than the $GLOBALS arrary, the answer is no.  I looked through the 
code in PHP4 and saw nothing that will allow you to see that there 
either.  I might have to do something about that.  :)