Home > Q&A > body text
I reported an error like this after executing it
Invalid argument supplied for foreach()
The Count of Monte Cristo2019-03-04 13:41:28
The following code has not been written yet. 0 0 You will know after writing the following if statement
张无言2018-12-01 13:19:05
I also encountered this problem. Did the original poster solve it?
What's the problem
无忌哥哥2018-07-11 10:35:39
It is necessary to make a judgment if it is empty
Yes, foreach will assign the empty value to 0. Just now, ord was not assigned a value.