I have this array...

```php
[
 [
  [
    "name" => "Initials"
    "value" => "ROR"
  ],
  [
    "name" => "Awards"
    "value" => "Swimming"
  ],
],
[
  [
    "name" => "Initials"
    "value" => "NAL"
  ],
  [
    "name" => "Awards"
    "value" => "Cycling"
  ],
 ]
]

```

What's the best way for me to change this array so I can save it like this...

```php
[
  [
    "Initials" => "ROR"
    "Awards" => "Swimming"
  ],
  [
    "Initials" => "NAL"
    "Awards" => "Cycling"
  ],
]

```

I've started doing something like looping through them and this... but this gives me one array element per new array.

```php
foreach($array as $rows) {
    foreach($rows as $field) {
        $values[] = [$field['name'] => $field['value']];
    }
}

```