Make sure to use elseif with PHP. It's a subtle difference, but it's [more performant] (http://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#C_borrowings).