public method : public : Class PHP Source Code


PHP Source Code » Class » public »

 

public method



<?php

   class Staff
   {
      private $name;

      public function setName($name) {
         $this->name = $name;
     }
   }

   $staff = new Staff;
   $staff->setName("Mary");

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» public