By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Array of all local variables? How?

P: n/a
Hej everybody,

I was wondering if there is a way to get an array containing all
variables in the local scope. Just as $GLOBALS does with the global scope.

Thx
Christopher
Sep 8 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
..oO(Christopher Vogt)
>I was wondering if there is a way to get an array containing all
variables in the local scope. Just as $GLOBALS does with the global scope.
get_defined_vars()

Micha
Sep 8 '08 #2

P: n/a
>I was wondering if there is a way to get an array containing all
>variables in the local scope. Just as $GLOBALS does with the global scope.

get_defined_vars()
That's it. Thanks!
Sep 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.