Looking for a better method of checking a variable repeatedly
<p>I recently created a site that simply has a variable and checks it against various possible values and gives an appropriate response. The program goes through using a lot of <code>else if</code> statements.</p>

<p>I'm sure there is a better method of doing this, but not sure what to use. I'm still learning PHP really.</p>

<p>Here's the source code to give you a better idea:</p>

<p><a href="http://github.com/r3morse/isitup/blob/a7a972bcf125d1f058a44406a467438d46aa4b16/functions.php" rel="nofollow">http://github.com/r3morse/isitup/blob/a7a972bcf125d1f058a44406a467438d46aa4b16/functions.php</a></p>
