note 41121 deleted from function.count by googleguy
| From: | googleguy@php.net | Date: | Mon, 17 Sep 2012 00:13:15 +0000 |
| Subject: | note 41121 deleted from function.count by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190833@lists.php.net to get a copy of this message | ||
Note Submitter: rolandfoxx at yahoo dot com
----
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
?>