fetch_all_username_by_uid($uids); $return = array(); foreach($uids as $uid) { $return[] = array('uid' => $uid, 'username' => $profiles[$uid]); } mobile_core::result(mobile_core::variable(array('profiles' => $return))); } function output() { } } ?>