Data::read()
Reads data from a file; the data handler is automatically chosen by the extension if not specified
Data::read(string $file, string|null $type = null, bool $fail = true): array
Parameters
Name | Type | Default |
---|---|---|
$filerequired | string |
no default value |
$type | string ornull |
null
|
$fail | bool |
true
|
Return type
array