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 Link to comment https://forums.phpfreaks.com/topic/45821-solved-while-do-while/ 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. Link to comment https://forums.phpfreaks.com/topic/45821-solved-while-do-while/#findComment-222682 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. Link to comment https://forums.phpfreaks.com/topic/45821-solved-while-do-while/#findComment-222698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.