class member variable access : private : Class PHP Source Code


PHP Source Code » Class » private »

 

class member variable access



<?php
   class Staff
   {
      private $name;
      private $title;
      protected $wage;
      protected function clockIn() {
         echo "Member $this->name clocked in at ".date("h:i:s");
      }
   
      protected function clockOut() {
         echo "Member $this->name clocked out at ".date("h:i:s");
      }
   }
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» private