note 111239 added to function.ip2long

From: Date: Tue, 29 Jan 2013 20:59:01 +0000
Subject: note 111239 added to function.ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-193430@lists.php.net to get a copy of this message
A one line version what is A LOT quicker than using some function to ensure that output of ip2long is corrected to unsigned int if it is negative: $i=ip2long($ip); if($i<0)$i=4294967296+$i; ---- Server IP: 69.147.83.199 Probable Submitter: 78.63.227.132 ---- Manual Page -- http://php.net/manual/en/function.ip2long.php Edit -- https://master.php.net/note/edit/111239 Del: integrated -- https://master.php.net/note/delete/111239/integrated Del: useless -- https://master.php.net/note/delete/111239/useless Del: bad code -- https://master.php.net/note/delete/111239/bad+code Del: spam -- https://master.php.net/note/delete/111239/spam Del: non-english -- https://master.php.net/note/delete/111239/non-english Del: in docs -- https://master.php.net/note/delete/111239/in+docs Del: other reasons-- https://master.php.net/note/delete/111239 Reject -- https://master.php.net/note/reject/111239 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193430) next »