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