PHP 将二维数组中某列值作为数组的键名

$priceArr = array_column($priceArr, null, 'id');//把id当作key值直接获取即可

posted @ 2020-01-15 18:30  ノGHJ  阅读(475)  评论(0)    收藏  举报