is_empty($testval, $includes)
$testval: value to be tested
$includes: values to be regarded as empty values
vdump(is_empty('10')); //false
false
is returned
vdump(is_empty('')); //true
true
is returned
vdump(is_empty(' ')); //true
true
is returned
vdump(is_empty([])); //true
true
is returned
vdump(is_empty('10', [5, 10, 15])); //true
true
is returned
vdump(is_empty('10', [2, 4, 6])); //false
false
is returned