string - A PHP Loop question -


i'm creating script creates random security number user, , i'm looking @ ways can complete this.

i need security number 7 digits doesn't contain 0. when using rand(1111111,9999999) there still possibility of 0 being inside of number, wondering loop best check , function use check existence of 0 in string?

couldn't concat random number between 1 , 9 7 times?

rand(1,9) 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -