I have been using a while loop for this but recently got into debate with a friend over what form of iteration is the best way to establish an infinite loop in PHP?
Which is the best type of iteration to infinitely loop?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because, in this case the condition evaluation will be minimal.
BTW, do you really have to loop infinitely? You know what you are doing right? I hope! 🙂