mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-12-02 03:37:19 +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();
|