Thursday 4 July 2019

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...