Monday 28 March 2016

php - What is the difference between the | and || operators?



| and || - what is the difference between these two operators in PHP?


Answer




| is a bitwise or, || is a boolean or.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...