stream_get_wrappers 


php128 apg

RECOVERS the list of STREAM WRAPPERS, registered in the system, in the format of an indexed ARRAY.



<?php

arr stream_get_wrappers 
( )           

?>

 REGISTERED STREAM WRAPPERS 


A STREAM WRAPPER is an abstraction of a file system that allows PHP to use the same set of methods to access both local files and remote resources.

Provide a facility for managing and querying user-defined STREAM WRAPPERS.

In this system the registered REGISTERED STREAM WRAPPERS can be seen in the below table.

Test your system running the next execise to see if they match, or not.


  1 EXERCISE   

<table width="100%" cellspacing="5" 
cellpadding="5" border="1" 
align="center"><tbody><tr>
<td colspan="3">
REGISTERED STREAM WRAPPERS</td></tr>
<tr><td>ARRAY INDEX</td><td>TYPE</td>
<td>NAME</td></tr> 
<?php

$st_wr 
stream_get_wrappers();

$cnt_wr count($st_wr);

for(
$i=0$i $cnt_wr$i++)
{
echo 
'<tr><td>' $i '</td><td>' 
     
strtoupper(gettype($st_wr[$i])) . '</td><td>' 
                                
$st_wr[$i] . '</td></tr>';

?>
<tr><td colspan="3">ed48</td></tr>
</tbody></table>


 RESULT   

Test your system to see if they match, or not.

REGISTERED STREAM WRAPPERS
ARRAY INDEX TYPE NAME
0 STRING php
1 file
2 glob
3 data
4 http
5 ftp
6 zip
7 compress.zlib
8 https
9 ftps
10 phar
ed48