foreach ($this->CsInventory as $value)
    {
     print_r($value) // print 1
    $vname = $value[] = $value['VesselName']; 
    $total = $value[] = $value['Total']; 
    $Box = $value[] = $value['Box']; 
        print_r($value); // print 2
        $rdata .= '<td>'.$vname.'</td>
          <td>'.$total.'</td>
             <td>'.$Box.'</td>';                 
    }
Print 1
Array
(
    [VesselName] => MARIANNE
    [Total] => 13838
    [Box] => 1156
)
Array
(
    [Box] => 154
)
Array
(
    [Box] => 3825
)
Array
(
    [Box] => 50571
)
print 2
Array
(
    [VesselName] => MARIANNE
    [Total] => 15452
    [Box] => 1156
    [0] => MARIANNE
    [1] => 15452
    [2] => 1156
)
Array
(
    [Box] => 2276
    [0] => 
    [1] => 
    [2] => 2276
)
Array
(
    [Box] => 3825
    [0] => 
    [1] => 
    [2] => 3825
)
Array
(
    [Box] => 49235
    [0] => 
    [1] => 
    [2] => 49235
)
i how can i remove an empty value in the array? i try many ways but i can get any solution.. so decide to here in the forum?
 
     
     
    