getaddrinfo

function getaddrinfo(
  string $host,
  string $port,
  int $family = 0,
  int $socktype = 0,
  int $protocol = 0,
  int $flags = 0,
): mixed;

Parameters

  • string $host
  • string $port
  • int $family = 0
  • int $socktype = 0
  • int $protocol = 0
  • int $flags = 0

Returns

  • mixed