I have an array from which I want to remove the first level index and retain the value of it.
Is it possible to do without loops?
Input Array:
Array (
    [0] => Array(
             [2135] => Array(
                         [id] => 2135
                         [first_name] => John
                         [last_name] => Doe
                       )
            ),
    [1] => Array (
             [3245] => Array(
                         [id] => 3245
                         [first_name] => Sally
                         [last_name] => Smith
                       )
            )
)
Expected Output:
Array (
     [2135] => Array(
                 [id] => 2135
                 [first_name] => John
                 [last_name] => Doe
               ),
     [3245] => Array(
                 [id] => 3245
                 [first_name] => Sally
                 [last_name] => Smith
               )
)



Iterator. You'll find more details on that answer, which is why I'm not answering. It's duplicated.iterator_to_arrayuses loops insidefor,whileorforeach. But any function that takes array manupulation of multiple elements will have to iterate over it anyway, so...