I will pay $10 for the simple fix --- YOU MUST JOIN THE CATEGORIES INTO A SINGLE STRING
I am trying to scrape the Freelancer board listings, I can get the from the RSS feed but I am stuck getting the CATEGORIES for the projects.
1) It can be a single string
2) It can be an array
--------------------------------------------------------------------------
<?php
// Grab the job board listings
$url = "http://www.freelancer.com/rss.xml";
$xml = simplexml_load_file($url);
$items = $xml->xpath("//item");
foreach ($items as $item){
// THIS WILL NOT JOIN THE CHILDREN
$categories = join( ",", $item->category);
echo $item->title."<BR>";
echo $item->pubDate."<BR>";
echo $item->link."<BR>";
echo $item->description."<BR>";
}
?>
----------------------------------------------------------------------------------------