private function parse_result($string)
    {
        $array1 = explode(PHP_EOL, trim($string));
        $result = array();
        foreach ($array1 as $key => $value) {
            $array2 = explode(':', $value);
            $result[ $array2[0] ] = trim($array2[1]);
        }

        return $result;
    }
private function parse_result($string)
    {
        $array1 = explode(PHP_EOL, trim($string));
        $result = array();
        foreach ($array1 as $key => $value) {
            $array2 = explode(':', $value);
            $result[ $array2[0] ] = trim($array2[1]);
        }

        return $result;
    }
private function parse_result ( $ string ) { $ array1 = explode ( PHP_EOL , trim ( $ string ) ) ; $ result = array ( ) ; foreach ( $ array1 as $ key => $ value ) { $ array2 = explode ( ':' , $ value ) ; $ result [ $ array2 [ 0 ] ] = trim ( $ array2 [ 1 ] ) ; } return $ result ; }
Parse tbcbank server response string into an array
@param  string $string
@return array
Parse tbcbank server response string into an array