<?php
$x =array(
array(),
"",
0,
false,
null
);
foreach ($x as $val) {
if (!$val) {
print "The condition is unexpectedly true, though it's not a boolean and was magically converted\n";
}
}
The condition is unexpectedly true, though it's not a boolean and was magically converted
The condition is unexpectedly true, though it's not a boolean and was magically converted
The condition is unexpectedly true, though it's not a boolean and was magically converted
The condition is unexpectedly true, though it's not a boolean and was magically converted
The condition is unexpectedly true, though it's not a boolean and was magically converted