I have been having problems on one of my foreach loops where PART of the loop terminates after just one iteration, with no output or error.
After searching the web for answers, I still don't know any possible causes for this issue (and the code is too large to be useful to the community...)
Therefore my question is, "what are the possible causes for a foreach loop to terminate after just one iteration?" (assuming more iterations are required)
breakinstruction.break,dieandreturncan all cancel a foreach totally,continuecan skip the iteration but will not break a loop."PART of the loop terminates after just one iteration"= One item in the array.(assuming more iterations are required)