alternative to $_POST

后端 未结 3 1013
悲哀的现实
悲哀的现实 2021-01-27 09:20

I have a huge form with inputs of type (text, checkboxes, hidden et). The content of the form inputs are taken from a database. The user has to make some changes and to save the

3条回答
  •  暖寄归人
    2021-01-27 09:24

    As far as loop processing goes, the foreach loop contruct in PHP makes a copy of the array you are working on. If you want to process $_POST with a different loop construct (for / while) and use functions like count(), current(), reset(), next(), prev(), end(), each(), or key(), have at it.

    Programming PHP: Chapter 5, p. 128-129

提交回复
热议问题