Skip to content

microtobe/php-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

php-type

Expression gettype($x) empty($x) boolean:if($x) is_null($x) isset($x)
$x = ""; string TRUE FALSE FALSE TRUE
$x = null; NULL TRUE FALSE TRUE FALSE
var $x; NULL TRUE FALSE TRUE FALSE
$x is undefined NULL TRUE FALSE TRUE FALSE
$x = array(); array TRUE FALSE FALSE TRUE
$x = false; boolean TRUE FALSE FALSE TRUE
$x = true; boolean FALSE TRUE FALSE TRUE
$x = 1; integer FALSE TRUE FALSE TRUE
$x = 42; integer FALSE TRUE FALSE TRUE
$x = 0; integer TRUE FALSE FALSE TRUE
$x = -1; integer FALSE TRUE FALSE TRUE
$x = "1″; string FALSE TRUE FALSE TRUE
$x = "0″; string TRUE FALSE FALSE TRUE
$x = "-1″; string FALSE TRUE FALSE TRUE
$x = "php"; string FALSE TRUE FALSE TRUE
$x = "true"; string FALSE TRUE FALSE TRUE
$x = "false"; string FALSE TRUE FALSE TRUE

About

Differences from empty and is_null and isset in php.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors