<?
function is_valid($var1, $var2){
if($var1 > 0 && $var2 = 5){
return false;
} else{
return true; // ?
}
}
?>
If $var1 > 0 and $var2 = 5, it will return false, otherwise, it will return true.
You can use something like that...
<?
if(function_is_valid($number_1, $number_2)) {
// Code if OK
} else {
// Code if NOT ok
}
Got it ?