Check a string regardless of case structure
<p>I have this code that checks if a string is blue.
I want it to approve it regardless of whether it's lower or upper case in any of the letters.</p>

<pre><code>if( ($subcol !== 'blue') || ($subcol !== 'Blue') || ($subcol !== 'BLUE')    ) {
    $form-&gt;setError($field, "* Colour not correct, use the hint");
}
</code></pre>

<p>This doesn't seem to work?
Have I structured something wrong?</p>

<p>Also, is there a PHP function that can be used that will just check it once for all these scenarios?</p>

<p>Thanks</p>
