php get value from multidimensional array by key code example Example: php multidimensional array get all values by key $ids = array_column($users, 'id');