$oldArr = array(
array(
0 => 'A0060750',
1 => 9787560618852),
array(
0 => '',
1 => 9787560618855),
array(
0 => '',
1 => 9787560618856),
array(
0 => 'A00607507',
1 => 9787560618857),
array(
0 => '',
1 => 9787560618858)
);
转化为
$newArr = array(
array(
0 => 'A0060750',
1 => 9787560618852),
array(
0 => 'A0060750',
1 => 9787560618855),
array(
0 => 'A0060750',
1 => 9787560618856),
array(
0 => 'A00607507',
1 => 9787560618857),
array(
0 => 'A00607507',
1 => 9787560618858)
);
简单说就是,如果二维数组中的,$oldArr[i][0] 的值为空,就以上一个不为空的值填充。