<?php $i = 0; while(count($TBClm)>0) {?> <div class="col-25p"> <table> <tbody> <?php $j = 0; foreach ($TBClm as $Ctg => $Column) { ++$j; ?> <tr class="category"> <td>-<?php echo $Ctg;?>-</td> </tr> <?php foreach ($Column as $key => $values) { if($Column[$key]==null) continue; ++$j; ?> <tr> <td> <?echo $values[0];?> <td> </tr> <?php $Column[$key]=null;//actually i want to remove this part //I used unset() and array_shift() but they didn't work if ($j > 10) break; } if ($j > 10) break; unset($TBClm[$Ctg]); }?> </tbody> </table> </div> <?php }?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)