How to get the first item from an associative PHP array?
Suppose I have the following associative array:

```php
$array = array(
    "foo" => "bar1",
    "baz" => "qux1",
    "qux" => "qux2",
    "foo" => "bar2",
);
```

To get the value of the first occurrence of the key `"foo"`, you can use the `array_shift()
I'm trying to get the value of 'name' from this associative array. Here's the code:

```php
$data = array(
    array('name' => 'John', 'age' => '25'),
    array('name' => 'Jane', 'age' => '27'),
);

// Some processing...

$firstItem = $data[0];

$firstName = $