Jak wygenerować nowe hasło składające się z cyfr i małych i dużych liter.
np. 8 znakowe?
<?php function new_password($chars_number) { // napisałem ci funkcje ;D if($chars_number == 0) { return 0; } $callback_string = ''; for($i = 0; $i < $chars_number; $i++) { if($what == 1) { $callback_string .= $low_letters[0]; } elseif($what == 2) { $callback_string .= $big_letters[0]; } else { $callback_string .= $numbers[0]; } } return $callback_string; } ?>