Re: RFC: blank() Function as a Complement to empty()

From: Date: Sat, 05 Apr 2025 19:10:05 +0000
Subject: Re: RFC: blank() Function as a Complement to empty()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-127053@lists.php.net to get a copy of this message
On 05/04/2025 19:41, Rob Landers wrote:
empty() has very many uses. That is exactly the same as saying == has many uses. It does. So many uses that it's useless. Its semantics are nonsense.
if (isset($var) && $varl != false) {   foo($bool); } $varl != false
You should never be doing this. Cheers, Bilge

« previous php.internals (#127053) next »