Differences From Artifact [27ce90a75e]:

To Artifact [4680da7c34]:


733
734
735
736
737
738
739
740
741


742
743
744
745
746
733
734
735
736
737
738
739


740
741
742
743
744
745
746







-
-
+
+





        }
    }

    static public function row_to_csv($row)
    {
        $row = (array) $row;

        array_walk($row, function ($field) {
            return strtr($field, ['"' => '""', "\r\n" => "\n"]);
        array_walk($row, function (&$field) {
            $field = strtr($field, ['"' => '""', "\r\n" => "\n"]);
        });

        return sprintf("\"%s\"\r\n", implode('","', $row));
    }
}