gusblake
10-19-2006, 08:17 PM
ok so i have an array like this:
$image[0]="flowers";
$image[1]="fruit";
$image[2]="flowers";
$image[3]="flowers";
$image[4]="people";
$image[5]="people";
each value refers to the gallery to which the $image belongs, but if i just want to know how many DIFFERENT galleries there are (ie how many different values can be found in $image[] array), what would i do?
$image[0]="flowers";
$image[1]="fruit";
$image[2]="flowers";
$image[3]="flowers";
$image[4]="people";
$image[5]="people";
each value refers to the gallery to which the $image belongs, but if i just want to know how many DIFFERENT galleries there are (ie how many different values can be found in $image[] array), what would i do?