![]() |
PHP gurus, help pls
echo array_count_values($r);
echoes the string "Array" instead the count of the array items :helpme |
Need to see rest of code. what is $r consisting of. How are you using it in above commands? etc.
|
echo count($r);
|
If you simply want to print out the number of items in an array, use count($r);
|
Quote:
|
If its just saying "Array" with a capital A, then array_count_values($r); is a function that is returning an array as a value, not a number or a string. Therefore ECHO doesn't know what to do with it.
|
Cheers guys count did the job
|
All times are GMT -7. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123