|
PHP5中文手册
getservbyname(PHP 4, PHP 5) getservbyname — Get port number associated with an Internet service and protocol 说明
int getservbyname
( string $service
, string $protocol
)
getservbyname() returns the Internet port which corresponds to service for the specified protocol as per /etc/services. 参数
返回值Returns the port number, or FALSE if service or protocol is not found. 范例
Example#1 getservbyname() example
<?php 参见
|