note 126713 added to function.count

From: Date: Sat, 25 Dec 2021 12:04:12 +0000
Subject: note 126713 added to function.count
Groups: php.notes 
Request: Send a blank email to php-notes+get-217419@lists.php.net to get a copy of this message
Empty values are counted: <?php $ar[] = 3; $ar[] = null; var_dump(count($ar)); //int(2) ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 178.27.174.177) ---- Manual Page -- https://php.net/manual/en/function.count.php Edit -- https://main.php.net/note/edit/126713 Del: integrated -- https://main.php.net/note/delete/126713/integrated Del: useless -- https://main.php.net/note/delete/126713/useless Del: bad code -- https://main.php.net/note/delete/126713/bad+code Del: spam -- https://main.php.net/note/delete/126713/spam Del: non-english -- https://main.php.net/note/delete/126713/non-english Del: in docs -- https://main.php.net/note/delete/126713/in+docs Del: other reasons-- https://main.php.net/note/delete/126713 Reject -- https://main.php.net/note/reject/126713 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217419) next »