HH\Lib\OS\inet_pton

Facebook Engineer?

This function is available as OS\inet_pton() in Facebook's 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