I have the following array response:
[0] => Array ([taxname] => Service tax @ 14% [taxamount] => 140000)
[1] => Array ([taxname] => swachh bharat cess @ 0.5% [taxamount] => 5000) [rowcount] => 2)
I am using the following code for display the result in view:
<?php
for($i=0;$i<$rowcount;$i++)
{
echo $i['taxName'];
}
?>
But nothing is displayed.
$iis in each iteration. Otherwise placeprint_r($i);inside the loop