getprotobyname
Get the protocol number associated with the protocol name
getprotobyname()
function returns the protocol number of the given protocol name.
An example getprotobyname()
:
<?php $protocolnum = getprotobyname ( "tcp" ) ; echo $protocolnum ; ?>
getprotobyname ( protocolname )
parameter | describe |
---|---|
protocolname | Required. Specify the protocol name (such as "tcp"). |