php-doc-en/reference/stream/functions/stream-get-transports.xml
2003-04-04 16:34:39 +00:00

70 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.stream-get-transports">
<refnamediv>
<refname>stream_get_transports</refname>
<refpurpose>Retrieve list of registered socket transports</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>stream_get_transports</methodname>
<void/>
</methodsynopsis>
<simpara>
Returns an indexed array containing the name of all socket transports
available on the running system.
</simpara>
<para>
<example>
<title>Using <function>stream_get_transports</function></title>
<programlisting role="php">
<![CDATA[
<?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
)
*/
?>
]]>
</programlisting>
</example>
</para>
<para>
See also
<function>stream_get_filters</function>, and
<function>stream_get_wrappers</function>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->