Brad Brett
asked on
Check if variable exists inside class
I have the following PHP class:
How can I check if specific variable name is existed in Class1 or not?
class Class1
{
public $var1;
public $var2;
public $var3;
}
How can I check if specific variable name is existed in Class1 or not?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
ASKER
How can I do that?