[請益] 陣列取值並計算數量
各位前輩好
我在修改書上範本的頁面時碰到了一個問題想請教前輩
就是...
以下這個陣列
我想取出GoodsKind=8的陣列存成新的陣列並計算數量
我要用哪個函數才對呢?
$Goods=Array(
[0]=>Array([GoodsID]=1 [GoodsUrl]=>http://xxx.xxx.xxx [GoodsKind]=>8)
[1]=>Array([GoodsID]=2 [GoodsUrl]=>http://xxx.xxx.xxx [GoodsKind]=>12)
[2]=>Array([GoodsID]=3 [GoodsUrl]=>http://xxx.xxx.xxx [GoodsKind]=>8)
)
先感謝各位前輩的幫忙囉!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.44.10.135
→
10/13 01:55, , 1F
10/13 01:55, 1F
→
10/13 02:42, , 2F
10/13 02:42, 2F
→
10/13 02:42, , 3F
10/13 02:42, 3F
討論串 (同標題文章)