Case-insensitive statements?
<p>Please forgive the ignorance, but I'm very new to PHP and I couldn't find what I want out there anywhere. So I've com here, where I know I'll get an answer.</p>

<p>What I want to do is accommodate for any letter case inconsistencies in the data I am pulling in (which I didn't create).</p>

<p>For example I would like the following if statement to work even if the $var is written as 'hello', 'HELLO', 'Hello', 'HeLlo', 'hELLo', 'hElLo',.. etc etc.</p>

<pre><code>if ($var == 'hello') {
 echo 'It works!';
}
</code></pre>

<p>Obviously that won't, but what could I do to that to make it not worry about the case of the text?</p>

<p>I have had a look around for these kinds of things, I found <code>strcasecmp()</code>, but to me that doesn't seem to be exactly what I want.</p>
