ExportableTrait
Table of Contents
Methods
- toCsv() : string
- Export the statistical summary to CSV.
- toJson() : string
- Export the statistical summary to JSON.
Methods
toCsv()
Export the statistical summary to CSV.
public
toCsv(array<string|int, mixed> $data[, string $delimiter = "," ]) : string
Parameters
- $data : array<string|int, mixed>
- $delimiter : string = ","
Return values
string —CSV content (Header + Values)
toJson()
Export the statistical summary to JSON.
public
toJson(array<string|int, mixed> $data[, int $options = JSON_PRETTY_PRINT ]) : string
Parameters
- $data : array<string|int, mixed>
- $options : int = JSON_PRETTY_PRINT