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