D
D
ddddeity2020-04-17 11:29:03
PHP
ddddeity, 2020-04-17 11:29:03

How to randomize text?

Hello, how can I make sure that when we go to the page, we are greeted with a random hello?
In different languages, so that he went to the page, and there hello, then updated and there ciao

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-04-17
@hzzzzl

collect an array of strings, and randomly pull out one element from it
https://www.php.net/manual/en/function.array-rand.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question