inflate_get_read_len()

inflate_get_read_len() — Get number of bytes read so far.

Built-in function of PHP 8.5. The manual lists it as available in PHP 7 >= 7.2.0, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.

What it does

This function is currently not documented; only its argument list is available.

Signature

inflate_get_read_len(InflateContext $context): int

Parameters

ParameterTypeWhat it takes
$contextInflateContext

Return value

Returns number of bytes read so far or false on failure.

Example

The PHP manual ships no example for inflate_get_read_len(); the signature and the parameter table above are the contract.

Changelog

VersionChange
8.0.0context expects an InflateContext instance now; previously, a resource was expected.

All PHP 8.5 built-in functions

Reference card built from the PHP manual page inflate_get_read_len() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.