格式显示问题
$ress = array ( 0 => array ( 0 => '237033AW0A', 'cust_no' => '237033AW0A', 1 => '4409', 'lotno' => '4409', 2 => 300, 'part_count' => 300, ), 1 => array ( 0 => '237033AW0A', 'cust_no' => '237033AW0A', 1 => '4410', 'lotno' => '4410', 2 => 141, 'part_count' => 75, ), )<br /><br />foreach($ress as $source)<br /> { <br /> if($source['part_count'] != 0)<br /> {<br /> $lotno_count = $source['lotno'].' * '.$source['part_count'];<br /> echo $lotno_count.'<br />';<br /> }<br /> }
$ress = array ( 0 => array ( 0 => '237033AW0A', 'cust_no' => '237033AW0A', 1 => '4409', 'lotno' => '4409', 2 => 300, 'part_count' => 300, ), 1 => array ( 0 => '237033AW0A', 'cust_no' => '237033AW0A', 1 => '4410', 'lotno' => '4410', 2 => 141, 'part_count' => 75, ), );<br /> <br />foreach($ress as $source) { <br /> if($source['part_count'] != 0)<br /> {<br /> $lotno_count[] = $source['lotno'].' * '.$source['part_count'];<br /> }<br />}<br />echo join('<br />', $lotno_count);<br />4409 * 300