mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
7 lines
196 B
Text
7 lines
196 B
Text
|
<?php
|
||
|
$data = array('users' => array('user' => array()));
|
||
|
foreach ($users as $user) {
|
||
|
$data['users']['user'][] = array('@' => $user['User']['username']);
|
||
|
}
|
||
|
echo Xml::fromArray($data)->saveXml();
|