I have a problem with simpleXML in PHP. Myy problem is, that i get arrays instead of strings or ints.

Via file\_get\_contents im getting following xml

```
<?xml version="1.0" encoding="UTF-8"?> 
<data>
    <name>579</name>
    <price>46</price>
</data> 

```

In im PHP im using this:

```
$xml = simplexml_load_string( file_get_contents( $url ) );
print_r( $xml->price) // returns array( 0 => "46" ) instead of 46

```

Does somebody has an idea how i can get strings?