Please see this code below:
for($i=0;$i<=count($s->channel);$i++){
echo "--->".$ChannelName = $s->channel[$i]->{'display-name'};
$arrChannelName[] = $ChannelName;
}
print_r($arrChannelName);
This return me output as Object instead of an array as:
Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[lang] => dk
)
[0] => DR1 DK
)
)
Anybody please help...!!!
Regards