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
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 = $