Class Constant

 
    <?php
class Employee {
    const AVAILABLE      = 0;
    const OUT_OF_STOCK   = 1;
    public $status;
}
print Employee::AVAILABLE;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.