Month: January 2020

PHP Type Conversion

PHP Type Comparison Tables

Comparisons of $x with PHP functions Expression gettype() empty() is_null() isset() boolean : if($x) $x = “”; string TRUE FALSE TRUE FALSE $x = null; NULL TRUE TRUE FALSE FALSE var $x; NULL TRUE TRUE FALSE FALSE $x is undefined NULL TRUE TRUE FALSE FALSE $x = array(); array TRUE FALSE TRUE FALSE $x = array(‘a’, ‘b’); array FALSE FALSE […]

Read More