tags:

views:

214

answers:

1

Say I have an array like this:

<?php
$colors=array();

$colors[0]['id']=1;
$colors[0]['color']='blue';


$colors[1]['id']=2;
$colors[1]['color']='green';

......
?>

What's the easiest way to have the entire array converted to XML?