HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/sparkle/wp-content/plugins/wp-all-export/src/Csv/CsvRcfWriter.php
<?php

/*
 * AJGL CSV RFC Component
 *
 * Copyright (C) Antonio J. GarcĂ­a Lagar <aj@garcialagar.es>
 *
 * 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);
    }

}