<?php
# Генератор текста
function passgen($number = 6)
{
$text = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnPpQqRrSsTtUuVvWwXxYyZz0123456789';
for ($is = null, $i = 0; $i < $number; ++$i) {
$is .= $text[rand(0, strlen($text) - 1)];
}
return $is;
}
$passgen = passgen(6);