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 else if
statements.
I'm sure there is a better method of doing this, but not sure what to use. I'm still learning PHP really.
Here's the source code to give you a better idea:
http://github.com/r3morse/isitup/blob/a7a972bcf125d1f058a44406a467438d46aa4b16/functions.php