is foreach nested inside foreach. I tried the third layer but it didn’t work. It’s so slow. How do the masters handle this situation?
PHP中文网2017-08-23 11:52:02
Theoretically unlimited, but most projects will only use three layers
ringa_lee2017-08-21 17:44:10
Generally speaking, there are at most three levels of loops. It is not recommended to use more than one. PHP is not good at processing such data. You can change your thinking and use other methods to process it