function ToArray($text) { $parser = new CXMPPParser($text); if (!$parser->Parse()) { return false; } return $parser->array; }