This is a known limitation. I will try and address this probably with some kind of special syntax.

Andi

At 04:49 PM 12/20/2002 +0100, Mickael Bailly wrote:

        Hello,

One line to say this is my first post here, I thought about posting in
php-general, but ZE2 is in development, so...

I want to access a static variable of a class, but I CANNOT use directly the
class name, so class name is in a variable.

To be clear:

<?PHP

class foo {
        static $conf = 'configuration variable';
}

$var = 'foo';

echo $var::$conf ;

?>

this produces a parsing error...

How could I do ?

Thanks

--
Mickael Bailly

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to