I have just seen this
// Check to see if the request is a XHR call if (request::is_ajax()) { // Send the 403 header header(\'HTTP/1.1 403 Forbidden\');
function text($var) { if ( ! $var) { return; } do_something(); } $var = text(''); echo gettype($var); echo is_bool($var) ? "true" : "false"; echo is_string($var) ? "true" : "false"; echo is_null($var) ? "true" : "false";
returns:
NULL false false true