When PHP executes a loop to collect data, how to terminate the execution of the program through a button
Do you know anything about it? When collecting data in a loop, how to terminate the execution of the program through a button? The amount of data is very large, and there are millions of loops. What should I do if I want to terminate it?