mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-24 15:57: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();
|