I think you should study PHP a bit longer before posting 'smartass' remarks :-)
In PHP it is completely correct to use OR instead of ||, and PHP understands 'else if' just as well as 'elseif'.
The only mistake there is is that he used the OR to create a range of possible values to match against, and it does not work that way (as Mark explianed).