看板 PHP 關於我們 聯絡資訊
各位前輩好 我在修改書上範本的頁面時碰到了一個問題想請教前輩 就是... 以下這個陣列 我想取出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
MOONRAKER:array_filter() 10/13 01:55
HYDRAGA:DONE 等等順便分享上來給大家~ 10/13 02:42
HYDRAGA:感謝一樓的大大 10/13 02:42