I have an IF statement within a While loop...is there any way I can tell the script to exit the While if the If is true?
btw - Hi! I'm Tony! 🙂 A super-uber-beginner-novice at PHP [I mean that I'm VERY novicy, not that I'm a good novice :p ]
Hi, welcome 🙂
[man]break[/man] should do the trick.
while(something) { if(true) { break; } }
why not just put the if condition right into your while statment?