The word private says it all - If you create a object,
you are not going to be able to use it, because its
private to that class. Its a class variable, not a object variable
Vivian Steller [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
is it possible to check if a variable declared as private?
I do not want to use reflection api in this case...
?php
class MyClass {
private $var = something;
}
$obj = new MyClass();
// something like this would be nice...
$isPrivate = isPrivate($obj, var);
?
best regards,
vivi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php