note 77845 deleted from function.empty by cmb

From: Date: Sun, 01 Dec 2019 09:22:26 +0000
Subject: note 77845 deleted from function.empty by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213357@lists.php.net to get a copy of this message
Note Submitter: Antone Roundy ---- There's a faster and easier to write method than (isset($a) && strlen($a)) -- isset($a{0}). It evaluates to false if $a is not set or if it has zero length (ie. it's first character is not set). My tests indicate that it's about 33% faster.

« previous php.notes (#213357) next »