gleez/cms — pull request #718 by sergeyklay (2014-04-22 14:32:50+00:00)
Title: Gleez Num v1.2.0

+ `Num::toIPv4` — Get the IPv4 dotted format address from integer:
```php
echo Num::toIPv4(4294967295); // 255.255.255.255
echo Num::toIPv4(3221234342); // 192.0.34.166
```

+ `Num::fromIPv4` — Get the integer value from IPv4 dotted format address:
```php
echo Num::fromIPv4('255.255.255.255'); // 4294967295
echo Num::fromIPv4('192.0.34.166'); // 3221234342
```

__Algorithm__:
_IP_: A.B.C.D
_INT_: A × 256³ + B × 256² + C × 256¹ + D

__Example__:
_IP_: 192.0.34.166
_INT_: 192 × 256³ + 0 × 256² + 34 × 256¹ + 166 =
192 × 16777216 + 34 × 256 + 166 =
3221225472 + 8704 + 166 =
3221234342