daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.         class classe{
  4.                 public $variable = "string";
  5.                 public $fristname = ;
  6.                 public $lastname = ;
  7.                 public function __Construct($fristname, $lastname){
  8.                         $this->fristname = $fristname;
  9.                         $this->lastname = $lastname;
  10.                 }
  11.         }
  12.  
  13.         $obj = new classe("lone", "wolf");
  14.                 echo $obj->variable;
  15.                 echo $obj->fristname;
  16.                 echo $obj->lastname;
  17.  
  18. ?>
RAW Paste Data
Top