Serial Number Checker
<p>I am trying to create a serial number checker.</p>

<p>Serial Numbers are in ranges<br>
A87594 - A92778<br>
AB34534 - AC23405<br>
B23933 - C344444</p>

<p>I was able to get the numbers to work using <strong>range()</strong> for the first serial number example, I'm guessing I need to use <strong>explode()</strong> but I wasn't sure how to explode the letters into a variable and the numbers into a seperate variable.</p>

<pre><code>if($_POST['submit']) {

    $snum = $_POST['serial_number'];

    // 1952
    $jan01_jan07 = range(87594, 92478);

    if (in_array($snum, $jan01_jan07)) {
        echo 'You have a 1952 Widget';
    }
    else {
        echo 'Your serial number is unknown';
    }
}
</code></pre>
