PC Nerd Posted April 6, 2007 Share Posted April 6, 2007 um, can you use something like the following: while(empty($Var_Name)) { DO STUFF} ??? the reason is that im selecting a random element from an array and puting it into another rarray, but if it isnt valid or doesnt select the element, then itll repeat is this valid code? thankc in advernce Quote Link to comment Share on other sites More sharing options...
trq Posted April 6, 2007 Share Posted April 6, 2007 Have you read the man entry on while? It will run until the expression is true. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 6, 2007 Author Share Posted April 6, 2007 dnt wry, i got it working, thankx anyway. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.