php/php-src — pull request #761 by anubisthejackle (2014-08-05 20:17:42+00:00)
Title: Created sempty (Strict Empty) function which evaluates 0 and FALSE as no...

Strict Empty (sempty) is a function that will evaluate empty with a stricter evaluation. Where empty will evaluate FALSE and 0 as empty values, sempty will see those as non-empty values.

An empty (zero-length) string is still considered null, and will evaluate as empty.

var_dump(sempty(null)) // true
var_dump(sempty("")) // true
var_dump(sempty(0)) // false
var_dump(sempty(false)) // false