HH\Lib\OS\inet_pton

Convert a presentation-format INET/INET6 address to network format

namespace HH\Lib\OS;

function inet_pton(
  AddressFamily $af,
  string $addr,
): mixed;

See man inet_pton

Parameters

  • AddressFamily $af
  • string $addr

Returns

  • mixed