ashleyhall wrote:I guess the only thing I can't yet get my head around is the difference between =, == and === when comparing variables!?!
Well, the last 2 you'll find here: [man]language.operators.comparison[/man]. The first, '=', isn't used in comparing at all - it's the assignment operator ([man]language.operators.assignment[/man]).
As for the difference between '==' and '===', the manual spells it out - the latter of the two compares not only the value but also the type. Since PHP is a loosely-typed language, '0' == FALSE (that is, a string containing a single character, a zero, equals the boolean value FALSE), whereas the same statement would be false if you used '===' (string vs. boolean, type mismatch).