sounds useful and cool, me thinks :o)

/ d

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm thinking about a new function: [mt_]rand_str
>
> Syntax:
> string [mt_]rand_str(minlen,maxlen[,charlist]);
>
> where charlist is in addcslashes (and now also [l|r]trim) syntax.
> Charlist defaults to 0..9a..zA..Z
>
>
> IMHO, this would be a very useful function.
>
> Any comments? Maybe not min&maxlen, but simply a fixed len? (since
> randomness on the length is ambigious to implement, there are less
> possibilities with shorter strings, which raises some issues).
>
> As an extension, the function could also accept an array as charlist,
> containing small strings, to produce pronouncable strings.
>
> Jeroen
>
>
>
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to