how to make version variable secure from $_GET
<p>i have <code>page?vesion=1.0.1</code></p>

<p>how can i make $_GET['version'] secure by somthing like</p>

<pre><code>$version = (float) $_GET['version'];
</code></pre>

<p>but this will work if it 1.2 or 1.0 and will not work if its 1.0.1</p>
