array count()

From: Date: Tue, 11 Jul 2000 04:19:27 +0000
Subject: array count()
Groups: php.general 
Request: Send a blank email to php-general+get-5846@lists.php.net to get a copy of this message
I have an record set from a MySql database; $record = mysql_fetch_array($result); I want to be able to count the number of elements inside that have the same key. Like $record["blah"]; I want to know how many record blahs there are in the record set. I hope someone out there can help. I used $num = count($record["advoc"]); but I new it was wrong and it returned 1. when there are 12 records. I've been pouring over the manual for an hour.

« previous php.general (#5846) next »