Documentation

Csv
in package

Table of Contents

Methods

init()  : mixed
reader()  : mixed
读csv文件
writer()  : mixed
写CSV文件 $header = ['first name', 'last name', 'email']; $content = [ [1, 2, 3], ['foo', 'bar', 'baz'], ['john', 'doe', 'john.doe@example.com'], ];

Methods

init()

public static init() : mixed

reader()

读csv文件

public static reader(mixed $file) : mixed
Parameters
$file : mixed

writer()

写CSV文件 $header = ['first name', 'last name', 'email']; $content = [ [1, 2, 3], ['foo', 'bar', 'baz'], ['john', 'doe', 'john.doe@example.com'], ];

public static writer(mixed $file[, mixed $header = [] ][, mixed $content = [] ]) : mixed
Parameters
$file : mixed
$header : mixed = []
$content : mixed = []

        
On this page

Search results