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()
To get the first item (in terms of alphabetical ordering) from an associative array in PHP, you cannot directly access it as an array index since keys are associative and need not be numeric or sequential.

Instead, you should first get an array of keys (sorted alphabetically), then use the first key to fetch the corresponding value. Here's how you could implement this:

```php
$yourArray = array(