Created
November 23, 2018 06:22
-
-
Save aclips/1f24af89bf88408af6fca31670d8d966 to your computer and use it in GitHub Desktop.
Bitrix случайная выборка пользователя
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| $users = \Bitrix\Main\UserTable::getList([ | |
| "order" => [ | |
| "RAND" => "asc" | |
| ], | |
| 'runtime' => array( | |
| new \Bitrix\Main\Entity\ExpressionField('RAND', 'RAND()') | |
| ), | |
| "limit" => 10 | |
| ])->fetchAll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment