Forum Moderators: coopster

Message Too Old, No Replies

Explode an array into sub arrays

         

itledi

4:04 am on Jan 27, 2008 (gmt 0)

10+ Year Member



I have an RSS feed which I exploded into an array based upon the item tag.

What I need to do is to explode my array into sub arrays based on the various sub tags such as title and link.

How can I go about doing this?

thanks

vincevincevince

5:03 am on Jan 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd use the DOM extension - it'll easily let you load in your RSS feed in one pass and then address each part as an object.

infinitylimit

11:36 am on Jan 27, 2008 (gmt 0)

10+ Year Member



Explode an Array?

Somethign like
<?php
foreach($items as $item){
$subarray[] = explode(SEPERATOR, $item);
}
?>