Skip to main content

file_get_contents

Function file_get_contents 

Source
pub fn file_get_contents(path: &[u8]) -> Option<Vec<u8>>
Expand description

file_get_contents($path) for a plain file path: the bytes of the file at expand_filepath(path), or None where PHP returns false (no such file, a directory, no permission). Paths with a NUL byte are None; PHP functions raise a \ValueError for them before opening.