Source Code:
(back to article)
<?php $protocol_number = 6; $protocol_name = getprotobynumber($protocol_number); if ($protocol_name === false) { echo "Failed to retrieve protocol name for protocol number $protocol_number"; } else { echo "The protocol name for protocol number $protocol_number is $protocol_name"; }
Result:
Report an issue