Class Constant : Class Constant Property : Class PHP Source Code


PHP Source Code » Class » Class Constant Property »

 

Class Constant




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

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» Class Constant Property