Convert a shortened IPv6 address to its full length form.
uncompressipv6( string $ip [, int $count ] ) : string
$ip (string) (Required) IPv6 address to convert.
$count (int) (Optional) This parameter shows how many : are in the full length version. Note: IPv6 address has 7 of them, but the mixed (IPv6 and IPv4) address has only 5. Default value: 7
(string)
echo uncompressipv6('ABCD:123:45::9');
// ABCD:0123:0045:0000:0000:0000:0000:0009