Its not displayed because it cannot be accessed non-statically.
A Static variable must be addressed statically, so the print_r and var_dump methods have no outside access to it through the instantiated object.
Try:
print_r($test::$C);
Some reading on static variables and how to access them:
----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.