← All docs

long2ip()

Converts an IPv4 address from long integer to dotted string notation.

long2ip()

function long2ip(int $ip): string

Converts an IPv4 address from long integer to dotted string notation.

Parameters:

  • $ip (int)

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how long2ip is implemented in the compiler, see the internals page.