dreamjob/lib/Cake/Test/test_app/View/Posts/xml/index.ctp

7 lines
196 B
PHP
Executable File

<?php
$data = array('users' => array('user' => array()));
foreach ($users as $user) {
$data['users']['user'][] = array('@' => $user['User']['username']);
}
echo Xml::fromArray($data)->saveXml();