<?php if ($foo = $bar) … ?>

Posted Monday, May 15, 2006 at 15h06 in Computers

PHP sure has some weird conditional matches. I thought it was a general rule that “if ($foo = $bar)” always evaluated TRUE unless $bar was NULL. But apparently that’s not the case in PHP: (Read on …)