note 41121 added to function.count
| From: | rolandfoxxatyahoodotcom at rn2 dot php dot net | Date: | Tue, 30 Mar 2004 21:13:20 +0000 |
| Subject: | note 41121 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67395@lists.php.net to get a copy of this message | ||
As an addition, any of the array manipulation functions can likewise get count to once again return
0:
<?php
$a = array();
print(count($a)); // prints 0
$a[0] = "foo";
array_shift($a);
print(count($a)); //prints 0
$a[0] = "bar";
array_splice($a, 0, 1);
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+41121
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41121&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41121&report=yes
Search -- http://master.php.net/manage/user-notes.php