diff --git a/Net/IPv6.php b/Net/IPv6.php index bafb668..1dd7f00 100644 --- a/Net/IPv6.php +++ b/Net/IPv6.php @@ -853,10 +853,10 @@ public static function SplitV64($ip, $uncompress = true) return array("", $ip); } - $ip{$pos} = '_'; + $ip[$pos] = '_'; $ipPart = explode('_', $ip); - if ($ip{$pos-1} === ":") { + if ($ip[$pos-1] === ":") { $ipPart[0] .= ":"; }