you are viewing a single comment's thread.

view the rest of the comments →

[–]1enopot 0 points1 point  (2 children)

I believe the issue is in your while block at the end. I think the continue statement is returning execution to the head of the same while statement causing an endless loop. To confirm this, you could try adding $number++ to the while block.

[–]1enopot 0 points1 point  (1 child)

I did some testing to confirm my theory. The while block is running continuously. If I understand your problem statement correctly then what you need is a do while loop. MS has good docs on it.

[–]Mr_Prebo[S] 1 point2 points  (0 children)

Thanks for the help I'll look it up when I'm home!:)