Convert and reconvert a version to number to store in database
<p>is there any algorithm to convert an string like <code>1.0.0</code> to a sortable number via PHP?</p>

<p>It should be able to convert to same string again. It's not possible to just remove dots. Also length of version is unknown, for example <code>1.0.0</code>, <code>11.222.0</code>, <code>0.8.1526</code></p>
