Using Class Constants

<?php
class Employee {
    const CATEGORY_WORKER = 0;
    const CATEGORY_SUPERVISOR = 1;
    const CATEGORY_MANAGER = 2;
 
}?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.