i ended up just casting the input to the function to a string and then i could compare it just fine.
PHP Code:
<?
function foo($a){
$a = (string)$a;
if($a=="0"){
// do this
}
...
}
?>
i don't have the exact problem in memory atm, but i know the tripple = was not working for me either.