I’m new to php.I’m reading a RSS feed and store in my database table.
for this I’m using
$num = count($movies->channel->item);
for ($i=0; $i<=$num-1; $i++){
$tittle= $movies->channel->item[$i]->title."<br/>";
$link=$movies->channel->item[$i]->link."<br/>";
$image=$movies->channel->item[$i]->medium_image_url."<br/>";
$des=$movies->channel->item[$i]->description."<br/>";
$city=$movies->channel->item[$i]->city;
}
how can display all data with foreach loop?
1 Answer