Hi,
How can i do a array counting in few dimention array? Let say I have:
$a[][100][name]='test1'; $a[][100][name]='test2'; $a[][101][name]='test3'; $a[][101][name]='test4'; $a[][101][name]='test5'; $a[][101][name]='test6';
How can i count how many record in $a[][100] and $a[][101] ??
I'd say this should work :
<?php $rows100 = count($a[0][100]); $rows101= count($a[0][101); ?>
It is assumed that $a has been defined as $a[][][] (three dimensions!)
I'm not sure it'll work - and if not please feel free to contact me again.