note 80920 added to function.array-count-values

From: Date: Wed, 06 Feb 2008 23:56:12 +0000
Subject: note 80920 added to function.array-count-values
Groups: php.notes 
Request: Send a blank email to php-notes+get-135835@lists.php.net to get a copy of this message
[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... ---- Server IP: 209.41.74.194 Probable Submitter: 134.197.153.253 ---- Manual Page -- http://www.php.net/manual/en/function.array-count-values.php Edit -- https://master.php.net/note/edit/80920 Del: integrated -- https://master.php.net/note/delete/80920/integrated Del: useless -- https://master.php.net/note/delete/80920/useless Del: bad code -- https://master.php.net/note/delete/80920/bad+code Del: spam -- https://master.php.net/note/delete/80920/spam Del: non-english -- https://master.php.net/note/delete/80920/non-english Del: in docs -- https://master.php.net/note/delete/80920/in+docs Del: other reasons-- https://master.php.net/note/delete/80920 Reject -- https://master.php.net/note/reject/80920 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135835) next »