Stream 함수 목록
PHP Manual

stream_get_transports

(PHP 5)

stream_get_transportsRetrieve 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 an indexed array of socket transports names.

예제

Example #1 Using stream_get_transports()

<?php
$xportlist 
stream_get_transports();
print_r($xportlist);
?>

위 예제의 출력 예시:

Array (
  [0] => tcp
  [1] => udp
  [2] => unix
  [3] => udg
)

참고


Stream 함수 목록
PHP Manual