<?php
$childs = $modx->getDocumentChildrenTVarOutput(33, "address");
foreach($childs as $child_key => $child_value){
foreach($child_value as $key => $value){
echo "[*id*] - " . $value;
}
}
?>
$flipped = array_flip($modx->documentListing);
$result = $modx->getDocumentChildrenTVars (33, array('id','pagetitle','address','postcode','city','telephone'));
for ($i=0;$i<count($result);$i++) {
echo $result[$i][4]['value'] . ', ' . $result[$i][5]['value'] . ', ' . $result[$i][0]['value'] . ', ' . $result[$i][1]['value'] . ', ' . $result[$i][2]['value'] . ', ' . $result[$i][3]['value'] . '<br /><br />';
}