Function __global->file
Definitions
sources_custom/phpstub.php
- Reads entire file into an array.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $filename | PATH | No | No | required parameter | N/A | N/A | The file name |
| $flags | integer | No | No | 0 | N/A | N/A | Flags |
Returns
- The array (each line being an entry in the array, and newlines still attached) (false: error)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Reads entire file into an array.
*
* @param PATH $filename The file name
* @param integer $flags Flags
* @return ~array The array (each line being an entry in the array, and newlines still attached) (false: error)
*/
function file(string $filename, int $flags = 0)
* Reads entire file into an array.
*
* @param PATH $filename The file name
* @param integer $flags Flags
* @return ~array The array (each line being an entry in the array, and newlines still attached) (false: error)
*/
function file(string $filename, int $flags = 0)

