(PHP 5, PHP 7)
Retrieve list of registered socket transports
array stream_get_transports ( void )
Returns an indexed array containing the name of all socket transports available on the running system.
Returns:
Returns an indexed array of socket transports names.
Examples:
Using stream_get_transports()
<?php $xportlist = stream_get_transports(); print_r($xportlist); ?>
The above example will output something similar to:
Array ( [0] => tcp [1] => udp [2] => unix [3] => udg )
See also:
Please login to continue.