But this code doesn't work. Is there some sort of array I can write that will let me replace an echo value (e.g. $Group) with ANYTHING included in an array? In other words, the switch above would work for any value in my array - Canidae, Felidae or Ursidae.

This particular page displays three values, including Loxodonta. But the script displays "Loxondonta" three times - once for every row. It might work if I could add some code that says DISPLAY LOXODONTA (or another value in the array) FOR EVERY ROW WHERE $TAXON = ONE OF THOSE VALUES.

Frenz48
—
2012-11-24T07:51:12Z —
#3

Chavista said:

I thought the in_array function might work, but it doesn't appear to work in a loop...

This particular page displays three values, including Loxodonta. But the script displays "Loxondonta" three times - once for every row. It might work if I could add some code that says DISPLAY LOXODONTA (or another value in the array) FOR EVERY ROW WHERE $TAXON = ONE OF THOSE VALUES.