trait WordPressFileHeaders (View source)

Methods

array
headers(string $path, array $headers)

Return the file headers as an associative array.

string
read(string $path, int $length = 8192)

Get a partial content of given file.

Details

array headers(string $path, array $headers)

Return the file headers as an associative array.

Parameters

string $path
array $headers

Return Value

array

string read(string $path, int $length = 8192)

Get a partial content of given file.

Parameters

string $path
int $length

Return Value

string