$tmpData = strval(file_get_contents("php://input"));
public function parseData($data) {
$list = explode("\r\n", $data);
foreach($list as $value) {
if($value) {
if(strstr($value, '--')) continue;
if(strpos($value, '-')) {
$key = str_replace('"', '', strchr($value, '"'));
continue;
};
if($value) {
$array[$key] = $value;
}
}
}
return $array;
}
$DataArray = $this->parseData($tmpData);
$DataArray['account'];