i have following bit of code
$cond = ‘0’; if($cond) echo $cond;
$cond = ‘0 ‘; if($cond) echo $cond;
$cond = ‘0 AND 0’; if($cond) echo $cond;
the first one only does what is expected the rest does not. how can these perform same behavior, Especially how can i evaluate the condition in the third case.
Try
But why would you want to do that?