The stream_get_wrappers() function is an inbuilt function in PHP which is used to get the list of registered streams available on the running system.
array stream_get_wrappers( void )
Parameters: This function does not accept any parameter.
Return Value: The function returns an array containing the name of all available streams.
Below programs illustrate the stream_get_wrappers() function in PHP:
Array (  => https  => ftps  => compress.zlib  => php  => file  => glob  => data  => http  => ftp  => phar )
Program 2: Program to check the given streams are available or not.
https: Enabled http: Enabled file: Enabled data: Enabled GFG: Not Enabled
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.