You are on page 1of 1

Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.

com/print/8ZbK1j7V

1. <?php
2. require_once('function.php');
3. $API = new RouterosAPI();
4. $API->debug = false;
5.
6. if ($API->connect($ipmikrotik, $usermikrotik, $passmikrotik)) :
7.
8. $result = $API->comm('/tool/user-manager/user/print', [
9. // '' => ''
10. ]);
11.
12. $offset = 1;
13. $limit = 100;
14.
15. $arr = array_slice($result, $offset * $limit, $limit);
16.
17. echo '<pre>';
18. print_r($arr);
19.
20.
21.
22.
23. // foreach ($arr as $row) {
24. // echo '<pre>';
25. // print_r($row);
26. // }
27.
28.
29. $API->disconnect();
30. endif;
31.

1 de 1 06/01/2021 10:27

You might also like