In the Kohana code conventions it states that using
|| is “incorrect”:
Is there any advantage to using
OR other than clarity?
The truth tables for the operators are the same, the only difference is precedence:
Just make sure that whatever convention you choose to adopt you are consistent throughout. Otherwise precedence issues will haunt your code.