Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$randomuser = array("user","user1","user2","user3","user4","user5"); shuffle($randomuser); /** MySQL database username */ define('DB_USER', $randomuser);
上記のコードをwp-config.phpで機能させるにはどうすればよいですか?ありがとう。
2番目の引数で取得するランダムユーザーの数も設定できます。
$random_users = array_rand($random_user,5); //gets 5 random users from array