is there a way to print out all defined resources?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

is there a way to print out all defined resources?

Post by Luke »

is there a way to print out all defined resources like you can with get_defined_vars()?
jamiel
Forum Contributor
Posts: 276
Joined: Wed Feb 22, 2006 5:17 am
Location: London, United Kingdom

Post by jamiel »

No but combine get_defined_vars with is_resource in a nice foreach loop and the job is done.
Post Reply