mcmuney Posted July 31, 2009 Share Posted July 31, 2009 How can I create a random fixed number of characters (for example, , made up of numbers only? Link to comment https://forums.phpfreaks.com/topic/168245-solved-random-characters/ Share on other sites More sharing options...
Zyx Posted July 31, 2009 Share Posted July 31, 2009 Create an array of characters, and put the rand() function into a loop which selects a random character from the array and adds it to the output string. Link to comment https://forums.phpfreaks.com/topic/168245-solved-random-characters/#findComment-887412 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.