← All docs
tidy_parse_file()
Parses an HTML file, optionally searching the include path, and returns a tidy document object.
tidy_parse_file()
function tidy_parse_file(string $filename, array|string|null $config = null, ?string $encoding = null, bool $useIncludePath = false): mixed
Parses an HTML file, optionally searching the include path, and returns a tidy document object.
Parameters:
$filename(string)$config(array|string|null), defaultnull, optional$encoding(?string), defaultnull, optional$useIncludePath(bool), defaultfalse, optional
Returns: mixed
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how tidy_parse_file is implemented in the compiler, see the internals page.