note 23563 deleted from function.getprotobyname by cece
| From: | cece@php.net | Date: | Sat, 16 Aug 2003 16:26:06 +0000 |
| Subject: | note 23563 deleted from function.getprotobyname by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54415@lists.php.net to get a copy of this message | ||
Note Submitter: nmiller at synergyinet dot com
----
A small example for getprotobyname()
<?php
$protocol = "tcp";
$get_prot = getprotobyname ( $protocol );
if ( $prot == -1 ) {
print "Invalid Protocol";
} else {
print "Protocol # ".$get_prot;
}
?>