In my display() method setting value using static initPost() and getting all value using static getAll and a single value using static get('email') method.When I'm checking using var\_dump() everything is fine.I want to take my value in my list().But I'm getting only first string of each value.But when I do it with out static method getting full value in my list().What is the problem?

```
public function display()
{
    echo "<pre>";
    Form::initPost());//initializing value
    var_dump(Form::getAll());//Getting all value
    var_dump(Form::get('email'));//getting only email value

    list($name,$email,$pass,$rpass,$phone)=Form::getAll();//taking value to list

    var_dump($name);//Here is the problem .only getting first string from full name
}

```

This is My form class:  

```
 class Form
{

private static $value = array();
public static function initPost()
{
    foreach($_POST as $key=>$value)
    self::$value[$key] = $value;
}
public static function getAll()
{
    return self::$value;
} 

public static function get($value){

        self::$value = $_POST[$value];

    return self::$value;
}

}

```

//This is OUTPUT section

```
var_dump(Form::getAll());//Getting all value
array(5) {
["name"]=>
string(12) "Bristi Bella"
["email"]=>
string(16) "bristi@gmail.com"
["pass"]=>
string(6) "123456"
["rpass"]=>
 string(6) "123456"
["phone"]=>
 string(6) "123456"
}

//Getting email value
var_dump(Form::get('email'));
string(16) "bristi@gmail.com"
 var_dump($name);//only getting first string from full name.But want full name
 string(1) "b"

```