I am trying to parse information that is inside an Array. The array comes from an RSS feed that I have converted into a json. The array is:
<channel>
<item>
<title> Title A </title>
<description> Description A </description>
<stuff url="google.com" type="search engine">
</item>
<item>
<title> Title B </title>
<description> Description B </description>
<stuff url="yahoo.com" type="old stuff">
</item>
....
</channel>
I am parsing using something like:
$newsoutput = json_decode(json_encode($the_RSS_Link), TRUE);
foreach ($newsoutput['channel']['item'] as $item) {
echo $item['title'];
echo "<br>";
echo $item['description'];
echo "<br>";
echo $item['stuff']['url'];
echo "<br>";
}
I can get both "title" and "description"; but I cannot extract the "url" values inside "stuff". I have tried various combinations without luck
Please advise.
Thank you,
H.
stuff