pastebin

Paste Search Dynamic
Recent pastes
worker
  1. <?php
  2.     class worker {
  3.         // first name of person
  4.         public static $name;
  5.         public static $surname;
  6.         // public function to get value of name (getter method)
  7.         public static function getworker() {
  8.             return self::$name;     // using self here
  9.            return self::$surname;
  10.         }
  11.     }
  12.  
  13. ?>
Parsed in 0.017 seconds