Close   

Admin and announcement forums

    30 Mar 2008
php utility functions for objects  
kumar rakesh
create and manage free online surveys with unlimited responses
Online surveys are now basic requirement of everyone who want to review there products or to make studies about anything. But finding a solution who can provide esurveys efficiently is really a big pain. creating an online survey with inefficient tool as irritating and getting survey conducted with limitations on responses is even worse.
cont..
    30 Mar 2008
php utility functions for objects  
kumar rakesh
practice interviews and prepare for interviews
in todays changing world every one want to increase there salaries very quickly.
Changes your employer is an very efficient solution for this. But changing employer and company is not so easy.

cont..

Viewed 152 times
Total posts : 0

    20 Nov 2007
php utility functions for objects  
Riya Ila
His other forums
php utility functions for objects
// utility functions

function print_vars($obj
{
    foreach (
get_object_vars($obj) as $prop => $val) {
        echo 
"\t$prop = $val\n";
    }
}

function 
print_methods($obj
{
    
$arr get_class_methods(get_class($obj));
    foreach (
$arr as $method) {
        echo 
"\tfunction $method()\n";
    }
}

function 
class_parentage($obj$class
{
    if (
is_subclass_of($GLOBALS[$obj], $class)) {
        echo 
"Object $obj belongs to class " get_class($$obj);
        echo 
" a subclass of $class\n";
    } else {
        echo 
"Object $obj does not belong to a subclass of $class\n";
    }
}
php utility functions for objects php utility functions for objects
php utility functions for objects Be first to reply this discussion.
php utility functions for objects php utility functions for objects php utility functions for objects

Login to participate in forums
jump to :
Post reply on this forum

linu 09 Mar 2008

Riya, these are really good utility functions.

Comment on this forum
Name :
Email :
Comments :
Legends
php utility functions for objects Forums tagged php utility functions for objects Forums tagged. But locked for further reply
="php Forums locked. can not accept further replies php utility functions for objects General forum