stream_get_wrappers()
stream_get_wrappers() — Retrieve list of registered streams.
Built-in function of PHP 8.5. The manual lists it as available in PHP 5, PHP 7, 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
Retrieve list of registered streams available on the running system.
Signature
stream_get_wrappers(): array
Parameters
This function takes no parameters.
Return value
Returns an indexed array containing the name of all stream wrappers available on the running system.
Example
A runnable snippet:
print_r(stream_get_wrappers());
Output:
Array ( [0] => php [1] => file [2] => http [3] => ftp [4] => compress.bzip2 [5] => compress.zlib )
See also
All PHP 8.5 built-in functions
Reference card built from the PHP manual page stream_get_wrappers() (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.