When and why should $_REQUEST be used instead of $_GET / $_POST / $_COOKIE?

前端 未结 6 1465

Question in the title.

And what happens when all 3 of $_GET[foo], $_POST[foo] and $_COOKIE[foo] exist? Which one of them gets

6条回答
  •  难免孤独
    2020-12-01 11:28

    When you're not certain where the values are populated or when you use them both and want to loop over all values by both POST and GET methods.

提交回复
热议问题