Duplication PHP content

0

When I duplicate this code, it appears vertically aligned, I would like to align this code horizontally

<?php 

for($k=0;$k<count($items);$k++)
{
    $item = $items[$k];
    $expire_key = (isset($from_recv) ? $from_recv : 0).'|'.ltrim($item['id'],0);
    $barcode = $item['id'];
    $text = $item['name'];

    if(isset($items_expire[$expire_key]) && $items_expire[$expire_key])
    {
        $text.= " (".lang('common_expire_date').' '.$items_expire[$expire_key].')';     
    }
    elseif (isset($from_recv))
    {
        $text.= " (RECV $from_recv)";
    }

    $page_break_after = ($k == count($items) -1) ? 'auto' : 'always';
    echo "<div class='barcode-label' style='page-break-after: $page_break_after'>".$company."<br /><img style='vertical-align:baseline;'src='".site_url('barcode').'?barcode='.rawurlencode($barcode).'&text='.rawurlencode($barcode)."&scale=$scale' /><br />".$text."</div>";


}


?>
    
asked by anonymous 09.08.2017 / 01:49

0 answers