Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate random words in PHP?

Tags:

php

How I can get random words without repeating in PHP? Help

like image 408
ABC Girl Avatar asked Jul 25 '10 16:07

ABC Girl


1 Answers

Try this func

function randw($length=4){
        return substr(str_shuffle("qwertyuiopasdfghjklzxcvbnm"),0,$length);
    }
like image 63
Arthur Veselov Avatar answered Oct 07 '22 00:10

Arthur Veselov