|
Interestingly enough, and I don't suggest you do this for both readability and code adding reasons, if you omit the braces and use single instruction evaluation on the if block, your code would have worked fine. In PHP, you don't require the semi-colon on the very last instruction in a script. I personally feel this is a bug in the core that was passed off as a feature though, so you really shouldn't rely on that. Just thought I'd make a mention of it.
|