View Single Post
Old 08-30-2005, 06:51 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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.
__________________
Mike
sde is offline   Reply With Quote