Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Class Constants in php

Sun Oct 26, 2008 11:26 pm

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




Post a reply
  Related Posts  to : Class Constants in php
 C++ Constants     -  
 Define class helper class to check the method existance     -  
 java abstract class,concrete class and interface     -  
 relationship between the Canvas class and the Graphics class     -  
 inner class that is a member of an outer class?     -  
 Define class inside another class C++     -  
 load class to applet- load frame class to applet     -  
 PHP example for a class     -  
 PHP class example     -  
 Vector class     -  

Topic Tags

PHP OOP