getservbyname
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get port number associated with an Internet service and protocol
<?php getservbyname
(
string $service
,
string $protocol
):
int
|
false