Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Phil Latio
February 22, 2007, 6:16 pm
rate this thread
something like the example below to the screen:-
Variable Names: $name, $age, $sex
Function Names: addUser, editUser, approveUser, activateUser, deleteUser
I would like to be able to actually select which classes to process and
perhaps use a stylesheet to format the output. Even might look at adding
other information such as last modified date.
It doesn't look too difficult using "get_class_vars" and "get_class_methods"
but before I go off and do this, I wondered if any such thing already
Re: Utility to print to screen class name, vars and functions?
I'm thinking with var_dump you get the most out of a class variables,
then combine it with get_class_methods and there you have it. A very
nice reflection of the class.
echo 'functions: '.implode(',', get_class_methods(get_class($object)));
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
email@example.com | Gedoon-S @ IRCnet | rot13(firstname.lastname@example.org)
- » Looking for competent PHP script kiddies forming a DEV team
- — Previous thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum