<?php

$categories = array(
	array("Weddings by Brooke", 1, "Brooke Christl"),
	array("Boston", 2, "M. Keefe"),
	array("Las Vegas", 3, "M. Keefe"),
);

function getCategories()
{
	global $categories;
	
	$xml = "<categories>\n";
	
	for($i=0; $i < count($categories); $i++)
	{
		$xml .= "	<category id=\"" . 
			$categories[$i][1] . "\" name=\"" . 
			$categories[$i][0] . "\" copyright=\"" . 
			$categories[$i][2] . "\" />\n";
	}
	
	$xml .= "</categories>";
	
	return $xml;
}

?>