PHP expert |
|
<?php
function newPass( $iLenght = 12 )
{
$aLetters = range('a', 'z');
$aNumbers = range(0, 10 );
$sLetters = implode('', $aLetters );
$sNumbers = implode('', $aNumbers );
$sNewPass = str_shuffle( $sLetters . $sNumbers );
return substr( $sNewPass, 0, $iLength );
}
<?php function newPass( $iLenght = 12 ) { $aLetters = range('a', 'z'); $aNumbers = range(0, 10 ); $sLetters = implode('', $aLetters ); $sNumbers = implode('', $aNumbers ); return substr( $sNewPass, 0, $iLength ); }
|