Reads entire file into an array.
Parameters
$file
stringrequired- Path to the file.
Source
public function get_contents_array( $file ) {
return explode( "\n", $this->get_contents( $file ) );
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Reads entire file into an array.
$file
stringrequiredpublic function get_contents_array( $file ) {
return explode( "\n", $this->get_contents( $file ) );
}
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.