What is wrong in my class.It;s giving me syntax error, unexpected ',' on my getall function.Is is not possible to send multiple return value? What would be the problem.
class Form
{
private $name;
private $email;
private $pass;
private $rpass;
private $phone;
public static function setname($name)//setting name
{
$this->name=$name;
}
public static function email($email)//setting email
{
$this->email=$email;
}
public static function password($pass)//setting password
{
$this->pass=$pass;
}
public static function repassword($rpass)//password again
{
$this->rpass=$rpass;
}
public static function phone($phone)
{
$this->phone=$phone;
}
public static function getall() //getting all value
{
$a=$this->name;
$b=$this->email;
$c=$this->pass;
$d=$this->rpass;
$e=$this->phone;
return($a,$b,$c,$d,$e);//here is the problem
}
}