PHP getservbyport() İşlevi
Örnek
Bir getservbyport() örneği:
<?php
$intservname = getservbyport(80, "tcp");
echo $intservname;
?>
Tanım ve Kullanım
getservbyport() işlevi, belirli bir bağlantı noktası ve protokol için İnternet hizmetini döndürür.
Sözdizimi
getservbyport(port, protocol)
Parametre Değerleri
Parameter | Description |
---|---|
port | Required. Specifies the port number (like 80) |
protocol | Required. Specifies a protocol name (like "tcp" or "udp") |
Teknik detaylar
Geri dönüş değeri: | Başarıda İnternet Hizmeti adı |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Ağ Referansı