note 80921 rejected from function.array-count-values by nlopess

From: Date: Thu, 07 Feb 2008 12:14:39 +0000
Subject: note 80921 rejected from function.array-count-values by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135854@lists.php.net to get a copy of this message
Note Submitter: reaper7861 at gmail dot com ---- [php]<?php ------>$myArray = array();<------this code needs to be removed for ($i = 0 ; $i < 10 ; $i++) { $myObject = new MyObject(); $myArray[$i] = $myObject; } echo (array_count_values($myArray)); ?>[/php] This gives you: Warning: Can only count STRING and INTEGER values... Found no solution for this yet... thats the solution for it, later...

« previous php.notes (#135854) next »