Generating a random numbers and letters

前端 未结 15 1175
梦如初夏
梦如初夏 2020-12-25 08:23

Can I ask for a certain code on how to generate a random letters and numbers in one word. I know there\'s a PHP function rand(), but I don\'t know if it\'s also applicable w

15条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-25 08:45

    Easiest way to do this with full control:

    
    

    Change $str according to your needs. I used small alphabets a to z, capital alphabets A to Z and numeric values 0 to 9.

提交回复
热议问题