PHP Classes

$tmp1 = explode('.

Recommend this page to a friend!

      PHP IP Sorter  >  All threads  >  $tmp1 = explode('.  >  (Un) Subscribe thread alerts  
Subject:$tmp1 = explode('.
Summary:Package rating comment
Messages:2
Author:Dima Zan
Date:2014-09-12 17:55:32
 

 

Dima Zan rated this package as follows:

Utility: Bad
Consistency: Bad
Examples: Not sure

  1. $tmp1 = explode('.   Reply   Report abuse  
Picture of Dima Zan Dima Zan - 2014-09-12 17:55:32
$tmp1 = explode('.', $val1);
$tmp2 = explode('.', $val2);
$tmp1 = $tmp1[0]*16581375+$tmp1[1]*65025+$tmp1[2]*255+$tmp1[3]
$tmp2 = $tmp2[0]*16581375+$tmp2[1]*65025+$tmp2[2]*255+$tmp2[3]
$ret = $tmp1-$tmp2

That's all!!!!

  2. Re: $tmp1 = explode('.   Reply   Report abuse  
Picture of Luca Pacchiarotta Luca Pacchiarotta - 2014-09-15 06:38:17 - In reply to message 1 from Dima Zan
Thanks for the suggestion!
A problem may have multiple solutions. Your solution is nice, congratulations.