mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 08:17:18 +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();
|