Guest User

Untitled

a guest
Apr 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors',  1);
  3. ini_set('display_startup_errors',  1);
  4. error_reporting(E_ALL);
  5. class a {
  6.  
  7.     public function setValue($value)
  8.     {
  9.         $this->value = $value;
  10.     }
  11.  
  12.     public function getValue()
  13.     {
  14.         return $this->value;
  15.     }
  16. }
  17.  
  18. $test = new a;
  19. $test->setValue('WO IST NOTICE ?');
  20. echo $test->value;
  21. echo "<br>";
  22. echo $test->getValue();
  23. echo '<br>Was loss?';
Add Comment
Please, Sign In to add comment