function word($arr=[])
{
$word = [];
$words_str = '';
$length_words = rand(1, 10);
$str_alf = "abcdefghijklmnopqrstuvwxyz";
for ($a = 1; $a <= $length_words; $a++) {
$i = rand(0, 25);
$words_str .= $str_alf{$i};
}
$word[]=$words_str;
return $word;
}
echo "<pre>";
var_dump( word() );
echo "</pre>";exit;