finfo_buffer()
function finfo_buffer(finfo $finfo, string $string, int $flags = 0, ?resource $context = null): string|false
Identifies the type and encoding of binary string contents.
Parameters:
$finfo(finfo)$string(string)$flags(int), default0, optional$context(?resource), defaultnull, optional
Returns: string|false
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how finfo_buffer is implemented in the compiler, see the internals page.