I have an array $data, here's print_r($data) values:
[ProductProperties] => Array
(
[ProductProperty] => Array
(
[0] => Array
(
[Additionaldescription] => microphone, blabla
)
[1] => Array
(
[interface] => USB 2.0
)
[2] => Array
(
[Model] => C310 HD
)
[3] => Array
(
[Manufacturer] => Logitech
)
[4] => Array
(
[Color] => Black
)
)
)
If i want to display "interface" value, i have to do like that:
echo $data['ProductProperties']['ProductProperty'][0]['interface'];
But in my case these numbers are always changing, so this is a no go for using a method above. Can i choose directly "interface" value without mentioning a number index, e.g.:
echo $data['ProductProperties']['ProductProperty']['interface'];
Thanks in advance. (using php 5.5)