<?php class user{ public function name($name) { $this->name = $name; echo 'Imie to '.$this->name.'!'; }} $adam = new user; $adam->name('Adam'); $dave = $adam; var_dump($dave);
You have javascript disabled. You will not be able to edit any code.