A
A
Alex Ponomarev2020-05-19 18:02:08
PHP
Alex Ponomarev, 2020-05-19 18:02:08

Script to open page chaotically?

I have 40 tests each on my page. This idea needs a creak, so that when you click on the button, the script would randomly select one of the pages and go to it.
I went through a lot of information, but so far I can not find at least something remote

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Arseny, 2020-05-19
@rusindex

poke

I
Ivan Ivanov, 2020-05-19
@maksim_fix

$sites = ['vk.com', 'google.com'];
$randomSite = $sites[rand(0,1)];
echo $randomSite;//ой, а что делать то? ведь это на пхп! на js аналогично...

How long have you been looking for

O
Oleg, 2020-05-19
@politon

Links to an array and random selection))
Now you at least know how to use Google correctly and ask the right queries ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question