Public fields : public : Class PHP Source Code


PHP Source Code » Class » public »

 

Public fields




<?php

   class Staff
   {
      public $name;
   }

   $employee = new Staff();
   $employee->name = "Joe";
   $name = $employee->name;
   echo "www.navioo.com: $name";

?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» public