Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Compare two version strings

$
0
0
Hi everyone,

I have to walk an array filled with version numbers and I have to find the highest one.
For example I could have

[0] => "1.0.1.4"
[1] => "1.2.0.12"
[2] => "5.0.85"
[3] => "4.6.3.23"

Using the example before, the highest one should be number 2 (5.0.85).
Is there anything like PHP version_compare function?

Thanks in advance!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>