Quantcast
Channel: PHP: strange behavior of foreach - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Mik for PHP: strange behavior of foreach

This was an opcache problem. I edited and saved some files but the bug appeared here and there on site pages. So I got that the reason is the cache and just executed opcache_reset().Hope this solution...

View Article



Answer by Inazo for PHP: strange behavior of foreach

The problem that you allways reload all your module each times ou execute the foreach.Add a variable before to store your modules list, and that's ok.The corrected code : $listOfModules =...

View Article

PHP: strange behavior of foreach

Below the code which works as expected before I try to usekey while iteration.As I do it, I see an error: "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 9223372043239833600...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images