infinite loop php 1

infinite loop php

//this infinte loop never stops until the if condition became true 
while(1){
			if(/*condition to exit from while*/);break;}
			ob_flush();	
			flush();
			sleep(2);
        	}

Here is what the above code is Doing:
1. It’s creating a while loop that will never stop until the condition is met.
2. It’s flushing the output buffer.
3. It’s sleeping for 2 seconds.
4. It’s repeating the process.

Similar Posts