Yes, I do need it to come out in my PHP
And that link you sent me was really helpful thanks

I found some code at
http://wiki.modxcms.com/index.php/API:getDocumentChildren which I think is exactly what I want, but the article is a little stunted so I was wondering what I need to put in each variable.
array getDocumentChildren($id=-1, $active=1, $deleted='0', $fields='id, pagetitle, description, alias, parent', $where, $sort, $direction, $limit);
I imagine I only want $fields=’pagetitle’ so as to only have the pagetitle, but I’m not sure what I need to set $id, $active and $deleted to..
Thanks for your help