Advertisement
Guest User

Untitled

a guest
May 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. class TownCenter {
  4.  
  5.     public static $hit_points = 1800;
  6.     public static $build_time = 10080;
  7.     public static $build_age = 3;
  8.     public static $deffence = 0;
  9.     public static $ability = array();
  10.     // here ->
  11.     public static $population = array( 1 => '5', 2 => '10', 3 => '15', 4 => '20', 5 => '20' );
  12.  
  13.     public static function ability() {
  14.          var_dump(TownCenter::$population);
  15.     }
  16.  
  17.     protected function backingOfScience() {
  18.  
  19.     }
  20.  
  21. }
  22.  
  23. $f = new TownCenter();
  24.  
  25. var_dump($f);
  26. TownCenter::ability();
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement