HH\Lib\OS\inet_pton

Meta Engineer?

This is available as OS\inet_pton in the www repository.

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