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.
2 つの値があります。ページの更新時にそのうちの 1 つをエコーして回転させたいと思います。
2 つの値が Hello と Hi の場合。
こんにちは > ページ更新 > こんにちは > ページ更新 > こんにちは > ページ更新 > こんにちは
shuffle、を試しましたがrand、mt_rand次の値にローテーションするのではなく、同じ値を保持する場合があります。
shuffle
rand
mt_rand
ありがとう。