choose a random word from an array php
$items = array(1, 2, 3, 4, 5);
echo $items[array_rand($items)];
choose a random word from an array php
$items = array(1, 2, 3, 4, 5);
echo $items[array_rand($items)];
random word using a wordlist php
// Read the whole file into a array.
$file = file('File Location');
// Getting the Words Count in the file.
$wCount = count($file);
// Printing out the random word.
echo $file[rand(0, $wCount - 1)];
// This is a one liner.
echo file('File Location')[rand(0, count(file('File Location')) - 1)];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us