pub fn read_php_source(path: impl AsRef<Path>) -> Result<String>Expand description
Read a PHP source file as text. PHP doesn’t care about encoding, so a file with non-UTF-8 bytes (e.g. a Latin-1 string literal) is still valid PHP: rather than rejecting it, each invalid sequence becomes U+FFFD.