Menu Home

stream_get_transports

osbo.com | PHP | Functions | stream_get_transports

Retrieve list of registered socket transports

Syntax

stream_get_transports ( void ) : array

Return

Returns an indexed array of socket transports names.

Examples

<?

$return = stream_get_transports();

print_r($return);

?>
Array
(
    [0] => tcp
    [1] => udp
    [2] => unix
    [3] => udg
    [4] => ssl
    [5] => sslv3
    [6] => tls
    [7] => tlsv1.0
    [8] => tlsv1.1
    [9] => tlsv1.2
    [10] => tlsv1.3
)

PHP