Hi folks,
My first post on here so please go easy on me 🙂
I’m declaring a two-dimensional array like this:
[CODE]var air = new Array();
air[0] = [‘dragonfly’, ‘crane fly’];
air[1] = [‘eagle’, ‘falcon’];
air[2] = [‘jumbo jet’,’harrier’];
air[3] = [mosquito, wasp];
etc etc…
My question is, is there any way to return the number of ‘rows’ in this array (in this case 4). Have played around with [B]array.length
I’m sure there’s an simple answer (as in [B]mysql_num_rows
Any ideas?
Thanks in advance,
Stef