How to get the first item from an associative PHP array?
To get the first item from an associative array in PHP, you cannot rely solely on its index due to the fact that it doesn't have a numeric key associated. Instead, you must look for the specific key that you want to access. Here's a code example using the array_shift() function:

```php
<?php
$myArray = array(
    "apple" => 2,
    "banana" => 3
```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