All pastes #84336 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-07-10 20:43 UTC
rendered paste body
preg_match_all("/<Property[^>]*>(.*?)<\/Property>/s", $this->content, $items);
if (sizeof($items[0]) == 0) {
  echo 'No item elements found in rss feed '.$this->category.' <br />\n';
  exit;
} 
$this->size = sizeof($items[0]);
for($i = 0; $i < sizeof($items[0]); ++$i) {
  preg_match_all("<.*?>(.*?)</.*?>/si", preg_replace("/<Property[^>]*>/", "", $items[0][$i]), $elements);
  for($j = 0; $j < sizeof($elements[0]); ++$j) {
    $this->rss[$i][$elements[1][$j]] = $elements[2][$j];
  }
}

Then we do basic extract for each thing:
extract($this->rss[$i]);