php - Possible to use a while loop within a loop? -


What I am trying to do is the following: I have an array of values, to produce these values ​​eventually Will be used for random unique strings but this is slightly later. First of all I would like to loop through the values ​​in the foreach loop, then I would like to limit it (while loop) is this the right way to do this?

The code below does not work Can anyone see what I'm doing?

  & lt ;? Php $ array = array ('1', '2', '3', '4', '5' '6', '7', '8', '9', '0', 'A' B, C, D, E, F, G, H, I, J, J, K, L, M, N, , 'O', 'P', 'Q', 'R', 'S', 'T', 'Y', 'V', 'W', 'X', 'Y', 'Z', '! ',' Pound ',' $ ','% ',' ^ ',' end ',' * ',' (',' '' '' ',' _ ',' + ',' {','} ') ; $ Length_of_unique_key = 15; $ Counter = 0; Forex currency ($ value as $ $) {$ counter ++; While ($ counter & lt; = $ length_of_unique_key) {}}? & Gt;    

Do not want to increase your counter within while Loop, so can it get out?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -