<?php $arr = [0 => ['id' => 'one', 'fruit' => 'apple'], 1 => ['id' => 'two', 'fruit' => 'banana']]; var_export(array_column($arr, null, 'id'));
You have javascript disabled. You will not be able to edit any code.