<?php class myclass { const MYCONST = 123; static $value = 567; } echo 'myclass::MYCONST = ' . myclass::MYCONST . "\n"; echo 'myclass::$value = ' . myclass::$value . "\n"; ?>