我需要幫助,當我覆寫檔案時,要跳過第一行。因為我在第一行上得到了日期,我想在那里放一個標題。如日期名稱等。
我試著用continue;,但它不作業。
$result=[]。
foreach($sumArray as $key=> $totalItems) {
$result[$totalItems][ ]= $sumArray1[$key] 。
$timeNeeded = implode(" ", $result[$totalItems] )。)
list($id1, $name1) = explode('_'/span>, $key) 。
$rows = 0;
$procenti = round(($perMin*$totalItems>) variable">$totalItems)/($timeNeeded/$precentEff)。 2)。)
$procentiCon = $procenti . " %"/span>;
$pickingEffRes = [$name1 , $totalItems, $procentiCon] 。
if($rows == 1) continue。
fputcsv($out, $pickingEffRes) 。
$rows ;
}
uj5u.com熱心網友回復:
$result=[]。
$rows = 0;
foreach($sumArray as $key => $totalItems) {
$result[$totalItems][ ]= $sumArray1[$key] 。
$timeNeeded = implode(" ", $result[$totalItems] )。)
list($id1, $name1) = explode('_'/span>, $key) 。
$procenti = round(($perMin*$totalItems>) variable">$totalItems)/($timeNeeded/$precentEff)。 2)。)
$procentiCon = $procenti . " %"/span>;
$pickingEffRes = [$name1 , $totalItems, $procentiCon] 。
if($rows == 1) continue。
fputcsv($out, $pickingEffRes) 。
$rows ;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/310221.html
標籤:
