I have the following 
[Multidimensional array.](http://bit.ly/1N4AVsA)

What I'm trying to do is to search for an IDITEM value and if it's found, return the value of the "PRECO" key.

I'm using the following function to check if the value exists and it works fine, but I can't find a way to get the "PRECO" value of the found IDITEM.

Function:

```
function search_array($needle, $haystack) {
 if(in_array($needle, $haystack)) {
      return true;
 }
 foreach($haystack as $element) {
      if(is_array($element) && search_array($needle, $element))
           return true;
 }
 return false;
}

```

Anyone can help me with that?