So I'm trying to understand WHY this occurs:
<?php
$a = TRUE;
$b = FALSE;
echo "a is ".$a."<br/>";
if (is_numeric($a)){
echo "a is numeric<br/>";
}
echo "b is ".$b."<br/>";
if (is_numeric($b)){
echo "b is numeric<br/>";
}
?>
gives the following output
a is 1
b is
So A is considered to be 1 but not considered to be numeric.
The manual says that a string like "42" is considerd numeric.