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 |
|
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!!!!
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.
|