Its not working. print only name. how can i print all properties? i cant find my error. please someone solve it with description. my code is...
<?php
class pavel{
public $name="pavel";
public $age="23";
public $degree="CSE";
public function myself_set($a,$b,$c){
$this->name=$a;
$this->age=$b;
$this->degree=$c;
}
public function myself_get(){
return $this->name."<br />";
return $this->age."<br />";
return $this->degree."<br />";
}
}
$obj = new pavel();
$obj->myself_set("parvej","24","BSc");
echo $obj->myself_get();
echo $obj->myself_get();
?>
returnstatement ends the execution of a function/method