Documentation

functions.php

League.Csv (https://csv.thephpleague.com)

(c) Ignace Nyamagana Butera nyamsprod@gmail.com

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Table of Contents

Functions

bom_match()  : string
DEPRECATION WARNING! This namespace function will be removed in the next major point release.
delimiter_detect()  : array<string, int>
DEPRECATION WARNING! This namespace function will be removed in the next major point release.

Functions

bom_match()

DEPRECATION WARNING! This namespace function will be removed in the next major point release.

since version 9.7.0

bom_match(string $str) : string
Parameters
$str : string
Tags
see
Bom::tryFromSequence()
codeCoverageIgnore

Returns the BOM sequence found at the start of the string.

If no valid BOM sequence is found an empty string is returned

Return values
string

delimiter_detect()

DEPRECATION WARNING! This namespace function will be removed in the next major point release.

since version 9.7.0

delimiter_detect(Reader $csv, array<string|int, string> $delimiters[, int<-1, max> $limit = 1 ]) : array<string, int>
Parameters
$csv : Reader
$delimiters : array<string|int, string>
$limit : int<-1, max> = 1
Tags
see
Info::getDelimiterStats()
codeCoverageIgnore

Detect Delimiters usage in a object.

Returns a associative array where each key represents a submitted delimiter and each value the number of CSV fields found when processing at most $limit CSV records with the given delimiter

Return values
array<string, int>

        
On this page

Search results