芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/vendor/gettext/gettext/src/Generators/Csv.php
false, 'delimiter' => ",", 'enclosure' => '"', 'escape_char' => "\\" ]; /** * {@parentDoc}. */ public static function toString(Translations $translations, array $options = []) { $options += static::$options; $handle = fopen('php://memory', 'w'); if ($options['includeHeaders']) { self::fputcsv($handle, ['', '', self::generateHeaders($translations)], $options); } foreach ($translations as $translation) { $line = [$translation->getContext(), $translation->getOriginal(), $translation->getTranslation()]; if ($translation->hasPluralTranslations(true)) { $line = array_merge($line, $translation->getPluralTranslations()); } self::fputcsv($handle, $line, $options); } rewind($handle); $csv = stream_get_contents($handle); fclose($handle); return $csv; } }