<?php
/*
* Description:This function returns true if passed number is divisible by two, false if not
*/
function isEven($number){
$isEven = false;
if(is_numeric ($number)){
if($number%2 == 0)
$isEven = true;
}
return $isEven;
}
?>
November 18, 2016
<?php
/*
* Description:This function returns true if passed number is divisible by two, false if not
*/
function isEven($number){
$isEven = false;
if(is_numeric ($number)){
if($number%2 == 0)
$isEven = true;
}
return $isEven;
}
?>