Function __global->cms_gethostbyaddr

Definitions

sources/global3.php

  • Get the Internet host name corresponding to a given IP address. Wrapper around gethostbyaddr.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ip_address string No No required parameter N/A N/A IP address

Returns

  • Host name OR IP address if failed to look up
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the Internet host name corresponding to a given IP address. Wrapper around gethostbyaddr.
 *
 * @param  string $ip_address IP address
 * @return string Host name OR IP address if failed to look up
 */

function cms_gethostbyaddr(string $ip_address) : string