PHP 5 also supports declaring class-specific constant values (similar to using define() in PHP 4.

<?php

    
class const_example {

        const 
myconstant 20;

    }

    echo 
"Value: ".const_example::myconstant;

?>