 
  
  $strings = explode("\n", $text);
$foo = function($c, $str) {
	$spacePos = mb_strpos($str, ' ');
	$key = mb_substr($str, 0, $spacePos);
	$val = mb_substr($str, 1 + $spacePos);
	$c[$key] = $val;
	return $c; 
};
$result = array_reduce($strings, $foo, []);