hello again,

once again a question about class properties, this time more reasonable...

Is there a possibility to check wether a static variable is set or not?

<?php
        class MyClass {
                public static $var;
        }

        print_r(get_class_vars("MyClass"));
?>

will not show $var, cause it's static.

an expression like

        if(MyClass::$somevar) {...}

ends up to a fatal error because $somevar is not declared.
is there a function to check if $somevar is declared?

unfortunately reflection api is VERY buggy yet...

thanks in advance,
vivi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to