stream_get_transports

(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:

stream_get_filters() -

stream_get_wrappers() -

doc_php
2016-02-24 16:06:56
Comments
Leave a Comment

Please login to continue.