9 ms·
I've been burnt by this in the past. Nowadays I use ($found === false) to check for a cache miss (though this means you can't store boolean values verbatim). T
by Gigablah 15y ago
I've been burnt by this in the past. Nowadays I use ($found === false) to check for a cache miss (though this means you can't store boolean values verbatim).
This is why:
!array() -> true
!null -> true
!false -> true
!0 -> true
!"0" -> true (!!?)
!"" -> true