Example:
<?php $value = getservbyport(137, "udp"); ?>
The same goes for getservbyname()(PHP 4, PHP 5, PHP 7, PHP 8)
getservbyport — Belirtilen port ve protokolle ilgili ağ hizmeti ile döner
   getservbyport() işlevi belirtilen
   protokol için /etc/services
   dosyasında port ile ilişkilendirilmiş ağ hizmetini
   döndürür.
  
portPort numarası.
protokol
       protokol olarak "tcp"
       veya "udp" (küçük harflerle) belirtilebilir.
      
   Ağ hizmetinin ismini bir dizge olarak, başarısızlık durumunda false döner.
  
Example:
<?php $value = getservbyport(137, "udp"); ?>
The same goes for getservbyname()