Question: I am having trouble trying to loop through a multidimensional array using PHP. When I use the `print_r()` function, here is my output:

```
Array ( [0] => Array ( [fname] => [sname] => [address] => [address2] => [city] => [state] => Select State [zip] => [county] => United States [phone] => [fax] => [email] => [use_email] => on )

```

I have tried several techniques but none seem to work. Any help is appreciated!

Answer: 
easiest would just use a foreach statement:

```
foreach($yourarray as $array_element) {
  $address = $array_element['address'];
  $fname   = $array_element['fname'];
  ...
}

```
It looks like there is one more dimension before what you want to loop through. Try this.

```
foreach($array[0] as $key => $value) {
    echo $key, ': ', $value;
}

```