note 127721 added to class.countable

From: Date: Fri, 14 Oct 2022 10:17:20 +0000
Subject: note 127721 added to class.countable
Groups: php.notes 
Request: Send a blank email to php-notes+get-219670@lists.php.net to get a copy of this message
@Rudiger The object class is irrelevant. In your example, it is not the return value of the count method that is tested..."empty($c)" is actually performing "does the VARIABLE contain *anything*". ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 81.133.43.69) ---- Manual Page -- https://php.net/manual/en/class.countable.php Edit -- https://main.php.net/note/edit/127721 Del: integrated -- https://main.php.net/note/delete/127721/integrated Del: useless -- https://main.php.net/note/delete/127721/useless Del: bad code -- https://main.php.net/note/delete/127721/bad+code Del: spam -- https://main.php.net/note/delete/127721/spam Del: non-english -- https://main.php.net/note/delete/127721/non-english Del: in docs -- https://main.php.net/note/delete/127721/in+docs Del: other reasons-- https://main.php.net/note/delete/127721 Reject -- https://main.php.net/note/reject/127721 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219670) next »