Response from a web service

I am getting the following response from a web service

Array ( [INSERTResult] => Array ( [schema] => Array ( [element] => Array ( [complexType] => Array ( [choice] => Array ( [element] => Array ( [complexType] => Array ( [sequence] => Array ( [element] => Array ( [0] => Array ( [!name] => Var [!minOccurs] => 0 ) [1] => Array ( [!name] => Value [!minOccurs] => 0 ) ) ) ) [!name] => Response ) [!minOccurs] => 0 [!maxOccurs] => unbounded ) ) [!name] => Response [!msdata:IsDataSet] => true [!msdata:UseCurrentLocale] => true ) [!id] => Response ) [diffgram] => Array ( [Response] => Array ( [Response] => Array ( [Var] => ResponseCode [Value] => 100 [!diffgr:id] => Response1 [!msdata:rowOrder] => 0 [!diffgr:hasChanges] => inserted ) ) ) ) )

How get I retrieve the value of ResponseCode [Value] ?

thanks

the code I wrote is the result of print_r…

Try:

echo '<pre>';
print_r($array_name_here);
echo '</pre>';

That will make the output of print_r more readable

What Anton was alluding to, was that print_r prints a more friendly version of the array structure, hence finding the right path the element you require would be easier.

I don’t want to print the all array . what I need is to get the value of one of the elements.

Maybe the function described here can help you.
http://www.php.net/manual/en/function.print-r.php#93529