让我说一下:
Array
(
[0] => Array
(
[filmType] => Symphony 15%
[rollSize] => 36
[linearFt] => 3
)
[1] => Array
(
[filmType] => Symphony 15%
[rollSize] => 36
[linearFt] => 3
)
[2] => Array
(
[filmType] => Symphony 15%
[rollSize] => 48
[linearFt] => 5
)
[3] => Array
(
[filmType] => Symphony 25%
[rollSize] => 36
[linearFt] => 7
)
[4] => Array
(
[filmType] => Symphony 35%
[rollSize] => 36
[linearFt] => 10
)
[5] => Array
(
[filmType] => Symphony 35%
[rollSize] => 36
[linearFt] => 10
)
如何增加奥文特独一无二的阵列要素。 独一无二的我指的是[过滤型]和[滚动式]。
我尝试了多种方法,包括搜索阵列、阵列过滤器和护卫......。 我是PHP的新鲜事,这是NOT的家庭工作。 感谢任何帮助!
因此,我的产出是:
$totalsArray = Array(
[0] => Array
(
[filmType] => Symphony 15%
[rollSize] => 36
[linearFt] => 8
)
[1] => Array
(
[filmType] => Symphony 15%
[rollSize] => 48
[linearFt] => 3
)
[2] => Array
(
[filmType] => Symphony 25%
[rollSize] => 48
[linearFt] => 7
)
[3] => Array
(
[filmType] => Symphony 35%
[rollSize] => 48
[linearFt] => 20
)