search

Home  >  Q&A  >  body text

Isn’t there null in the post form data? Why does foreach not report an error? ? ? ?

I reported an error like this after executing it

Invalid argument supplied for foreach()

大月半仙狗大月半仙狗2317 days ago1513

reply all(5)I'll reply

  • The Count of Monte Cristo

    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

    reply
    0
  • 张无言

    张无言2018-12-01 13:19:05

    I also encountered this problem. Did the original poster solve it?

    reply
    0
  • The Count of Monte Cristo

    What's the problem

    The Count of Monte Cristo · 2019-03-04 13:41:41
  • 无忌哥哥

    无忌哥哥2018-07-11 10:35:39

    It is necessary to make a judgment if it is empty

    reply
    0
  • 大月半仙狗

    Yes, foreach will assign the empty value to 0. Just now, ord was not assigned a value.

    大月半仙狗 · 2018-07-11 11:09:26
  • Cancelreply