Server IP : 172.67.157.199 / Your IP : 3.22.75.12 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/wp-all-export/src/Csv/ |
Upload File : |
<?php /* * AJGL CSV RFC Component * * Copyright (C) Antonio J. GarcĂa Lagar <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Wpae\Csv; class CsvRcfWriter { /** * @see http://php.net/manual/en/function.fputcsv.php * * @param resource $handle * @param array $fields * @param string $delimiter * @param string $enclosure * @param string $escape */ public static function fputcsv($handle, array $fields, $delimiter = ',', $enclosure = '"', $escape = '\\') { CsvRfcUtils::fPutCsv($handle, $fields, $delimiter, $enclosure, $escape); } /** * @see http://php.net/manual/en/function.fgetcsv.php * * @param resource $handle * @param array $length * @param string $delimiter * @param string $enclosure * @param string $escape * * @return array|false|null */ public static function fgetcsv($handle, $length = 0, $delimiter = ',', $enclosure = '"', $escape = '"') { return CsvRfcUtils::fGetCsv($handle, $length, $delimiter, $enclosure, $escape); } /** * @see http://php.net/manual/en/function.str_getcsv.php * * @param string $input * @param string $delimiter * @param string $enclosure * @param string $escape * * @return array */ public static function str_getcsv($input, $delimiter = ',', $enclosure = '"', $escape = '"') { return CsvRfcUtils::strGetCsv($input, $delimiter, $enclosure, $escape); } }