All the sources codes "But why ?"page 39
PHP
June 01, 2014 am30 04:52
#175
// . . .
return $this->boolean((bool)$data);
}
/**
* Translates between PHP boolean values and Database (faked) boolean values
*
* @param mixed $data Value to be translated
* @return mixed Converted boolean value
* @access public
*/
function boolean($data) {
if ($data === true || $data === false) {
if ($data === true) {
return "true";
}
return "false";
} else {
return !empty($data);
}
}
Java
May 29, 2014 pm31 12:43
#171
if(zftDTOList == null || (zftDTOList != null && zftDTOList.size() < 1))
{
//....
}