<?php $xportlist = stream_get_transports();print_r($xportlist);?>
Output will be similar to the following. Note: there may be more or fewer transports in your version of PHP.
Array ( [0] => tcp [1] => udp [2] => unix [3] => udg )