mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-10 08:28:41 +00:00
fix formatting
This commit is contained in:
parent
a767e9895d
commit
da4c76389e
|
|
@ -6,7 +6,8 @@
|
||||||
$fh = \fopen('GeoIPCountryWhois.csv', 'r');
|
$fh = \fopen('GeoIPCountryWhois.csv', 'r');
|
||||||
$fo = \fopen('output.csv', 'w');
|
$fo = \fopen('output.csv', 'w');
|
||||||
|
|
||||||
function ip2int(string $ip) : float {
|
function ip2int(string $ip) : float
|
||||||
|
{
|
||||||
$split = \explode('.', $ip);
|
$split = \explode('.', $ip);
|
||||||
return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3];
|
return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user