Every now-and-then I find myself on the PHP operator precedence page and am reminded that these are different.

var_dump( true || true && false ); // bool(true)
var_dump( true || true AND false ); // bool(false)Code language: PHP (php)

It depends on what I am doing as to whether or not I agree with the architectural decision. Anyway, kids, don’t use AND or OR.

Previous Note

Note: Current status: yelling at local development e…

Next Note

Note: I need to file an urgent bug report with YouTu…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.