Answer the question
In order to leave comments, you need to log in
How to fix the array output on the page?
Hello.
For example, there is an array with wordpress users, I want to mix it up and display it on the page in the order received. How can I make the output fixed on the page and this wordpress page could then be accessed and see this list?
$users = get_users();
shuffle($users);
print_r($users);
Answer the question
In order to leave comments, you need to log in
As an option, store a serialized list of user ids in the field of the table responsible for storing the settings. Accordingly, when shuffling users, we write the result to this table and take it when requested.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question