A getprotobyname() example:
<?php
$protocolnum = getprotobyname("tcp");
echo $protocolnum;
?>
The getprotobyname() function returns the protocol number for a given protocol name.
getprotobyname(
protocolname)
Parameter | Description |
---|---|
protocolname | Required. Specifies a protocol name (like "tcp") |
Return Value: | The protocol number on success. FALSE on failure. |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!