HH\Lib\OS\inet_ntop_inet6

Facebook Engineer?

This function is available as OS\inet_ntop_inet6() in Facebook's www repository.

Convert an INET6 (IPv6) address from network format to presentation (colon) format

namespace HH\Lib\OS;

function inet_ntop_inet6(
  in6_addr $addr,
): string;

See man inet_ntop

Parameters

  • in6_addr $addr

Returns

  • string