SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | $dt=array(); | |
3 | for($i=0;$i<2;$i++){ | |
4 | $params=$info['channel']['item'][$i]; | |
5 | ||
6 | $dt[]= [ | |
7 | 'title'=>$params['title'], | |
8 | 'description'=>$params['description'], | |
9 | 'pubDate'=>$params['pubDate'], | |
10 | 'link'=>$params['link'], | |
11 | 'category'=>$params['category'], | |
12 | - | 'enclosure url'=>$params=$info['channel']['images'], |
12 | + | |
13 | 'enclosure url'=> $params['enclosure']['@attributes']['url'], | |
14 | 'guid'=>$params['guid'] | |
15 | ]; | |
16 | } |