I once thought that I read somewhere that if you have a PHP script like this:
public function test($something){
if($something == "true") {
return true;
} else {
return false;
}
}
if(test("true")){
echo "Returned true";
}
Then that should work fine as the if
statement assumes you are checking if something is true when it is left blank? Is that true, and if so is it 'good programming' to leave it blank or should you finish off the statement for the sake of not cutting corners?