3d array-number of elements in each dimension

From: Date: Tue, 22 May 2001 20:15:26 +0000
Subject: 3d array-number of elements in each dimension
Groups: php.general 
Request: Send a blank email to php-general+get-53915@lists.php.net to get a copy of this message
I have a 3d array $ingredientsInfoSplit[$i][$j][$k] and this array is contains $i-row that data (a compounded suspension) was found in, $j-ingredients for the suspension, and $k-information on each ingredient used for the suspension. So each row in this file I have contains all the information needed to make a particular suspension and this array breaks it down so that I can read each part seperately. First, would there be a better way to hold this information? This way seems to work well but I am not an expert yet and was wondering if this is how you would do it. Now for the real question, for each suspension I need to determine how many ingredients were used to create it. So I need a way to determine how many $j elements there are in $ingredientsInfoSplit[$i][$j][$k] . I have been looking at the count function but I can't figure out how I could use it to determine how many $j elements there are. Thanks for any help, Andrew V. Romero -Please remove all numbers from address to reply personally.-

« previous php.general (#53915) next »