Question: I have a PHP array like

```
$arr = array("c_m_email" => "a@b.z");

```

and I can access the email by 

```
$arr['c_m_email'] 

```

But is there another way to just write `$arr[0]`?

Answer: 
Use `array_values()`

> 
> **array\_values()** returns all the values from the array and indexes the array numerically.
> 
> 
> 

Manual: <http://php.net/manual/en/function.array-values.php>
```
    $i=0;
    $data=array();

   foreach($arr as $value){

       $data[$i] = $value;

       $i++;

    }

    print_r($data);

```