pastebin

Paste Search Dynamic
Recent pastes
Colors
  1. <?php
  2. class Colors {
  3.  
  4.     public $colors = 'green ';
  5.     public function output_colors_name() { return 'red '; }
  6.  
  7.     function test() {
  8.         echo $this->colors;
  9.         echo $this->output_colors_name() ;
  10.     }
  11.  
  12. }
  13.  
  14. $obj = new Colors();
  15. $obj->test();
  16. ?>
Parsed in 0.005 seconds