[SOLVED] return false
Posted: Sun Mar 13, 2011 9:17 pm
I am having problems understanding return true and return false. If a value is returned false then how to code it to tell what to do next? what exactly is the difference of the return true and false?
after then code returned false, what do i do next to get the returned value? can i have a small tutor on how to get the value of a return false or return true? or what is the difference when i use them like that.
Code: Select all
<?php
function mySum($numX, $numY){
$total = $numX + $numY;
if ($number<=0){
return false;
} else {
return true;
}
}
?>