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()
```php
// Assuming $array is your associative array
$firstKey = key($array); // Get the first key
$firstValue = $array[$firstKey]; // Get the first value
```

In case you want to loop through the array and get the first value using a function like `array_shift()` or `list()`, here's how you can do it:

```php
// If you want to