EDI\Reader::unwrap PHP Method

unwrap() private static method

unwrap string splitting rows on terminator (if not escaped)
private static unwrap ( $string ) : array
$string string
return array
    private static function unwrap($string)
    {
        $file2 = array();
        $file = preg_split("/(?<!\\?)'/i", $string);
        foreach ($file as &$line) {
            $line = preg_replace('#[\\x00\\r\\n]#', '', $line);
            $temp = $line . "'";
            if ($temp != "'") {
                $file2[] = $temp;
            }
        }
        return $file2;
    }