note 42764 added to function.count

From: Date: Fri, 28 May 2004 12:28:49 +0000
Subject: note 42764 added to function.count
Groups: php.notes 
Request: Send a blank email to php-notes+get-70235@lists.php.net to get a copy of this message
In addition to the topmost notes you can also reduce an array's size be un-setting specific elements. <?php $a = array(); print(count($a)); // prints 0 $a[0] = "foo"; unset($a[0]); print(count($a)); //prints 0 ?> ---- Manual Page -- http://www.php.net/manual/en/function.count.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42764 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42764&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42764&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70235) next »