How can I limit the max value of number?
<p>I want to secure my page by checking if the value is digital (0,1,2,3) and if it is in the range from 0 to 120. I think <code>ctype_digit</code> function limits numbers, so can not be passed any negative number. How can I limit the max value in the simplest way?</p>

<pre><code>if (!ctype_digit($_GET['category'] AND ...) die('');

if (!ctype_digit($_GET['category'] &gt; 120) ?
</code></pre>

<p>I was thinkig about <code>intval</code> but it can pass negative numbers.</p>
