note 24483 added to function.ip2long
| From: | blizz at 0x03 dot net | Date: | Sat, 17 Aug 2002 21:48:08 +0000 |
| Subject: | note 24483 added to function.ip2long | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35177@lists.php.net to get a copy of this message | ||
Instead of using
sprintf("%u",ip2long($ip))
to get an positive value, you can also use
abs($ip2long($ip)).
--
http://www.php.net/manual/en/function.ip2long.php
http://master.php.net/manage/user-notes.php?action=edit+24483
http://master.php.net/manage/user-notes.php?action=delete+24483
http://master.php.net/manage/user-notes.php?action=reject+24483