$ PriceArr = array_column ($ priceArr, null, 'id'); // id as the direct access to the key value
PHP will be a two-dimensional array column value as an array of keys
Guess you like
Origin www.cnblogs.com/ghjbk/p/12198197.html
Recommended
Ranking