I have a function that does several tests and if any are true it needs to return false but I get an error about unexpected return for all returns except for the last one.

function test($s)
{
  if($s = 'this') return false;
  if($s = 'that') return false;
  return true;
}

any ideas on how to make this work or why it doesn't work?


Chris W


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to