Differences From Artifact [d3d713c466]:
- File src/include/lib/Garradin/Utils.php — part of check-in [3d0a52ff36] at 2017-09-08 04:51:57 on branch dev — Suppression méthodes inutilisées (user: bohwaz, size: 19739) [annotate] [blame] [check-ins using]
To Artifact [06255be23d]:
- File src/include/lib/Garradin/Utils.php — part of check-in [8b07624fcd] at 2017-09-20 06:21:24 on branch dev — Autorise une valeur décimale dans les champs à choix multiple, utile pour l'import (user: bohwaz, size: 19985) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
670 671 672 673 674 675 676 | arsort($delims); reset($delims); rewind($fp); return key($delims); } | | > > > > > > > > > > > | 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 | arsort($delims); reset($delims); rewind($fp); return key($delims); } static public function row_to_csv($row) { $row = (array) $row; array_walk($row, function ($field) { return str_replace('"', '""', $field); }); return '"' . implode('", "', $row) . '"'; } } |