I have this array here...
$previousBalance2 and it has 17 records in it
I put that 17 in a variable like so..
$i = count($previousBalance2);
I echoed out the $i
variable and got 17
how ever when I try this echo
echo $previousBalance2[$i]['total'];
It does not echo out anything (nothing gets displayed) and yes each record has a total
and it is called total
how do I fix my code so it will echo out the total of the 17th record (which is also the last record) or how would I echo out the last record of an array?
Thanks, J