note 30145 deleted from function.array-count-values by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 01:33:50 +0000 |
| Subject: | note 30145 deleted from function.array-count-values by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48323@lists.php.net to get a copy of this message | ||
Note Submitter: p3h7p03@matthias-rohr.de
----
You'll get an error, if you want to count the elements of an array of objects with
array_count_values.
$users=array(
array("a","a@b"),
array("b","b@b"),
array("c","c@c"));
-->
Warning: Can only count STRING and INTEGER values!
solution:
print sizeof($users);
-->
3