Posted by jools on 01/08/08 11:01
In article <op.t4kpci035bnjuv@metallium.lan>, luiheidsgoeroe@hotmail.com
says...
> On Mon, 07 Jan 2008 19:48:09 +0100, <jools@by.com> wrote:
>
> >
> > Just wondering what the simplest way to sort IP addresses would be
> > Is there a good way to sort that keeps them in sequence
> > asort() sorts on the first character so that doesnt quite do it of course
>
> Convert them to a number (using usort())?
> http://nl2.php.net/manual/en/function.ip2long.php
> http://nl2.php.net/manual/en/function.long2ip.php
> --
> Rik Wasmus
>
Aha - I knew there had to be something that helped - thanks Rik.
-jools-
Navigation:
[Reply to this message]
|