Echo an $_POST in PHP

后端 未结 3 826
独厮守ぢ
独厮守ぢ 2021-01-05 01:03

How can I print a $_POST?

Example:

echo $_POST[\'data\'];

This returns nothing...

3条回答
  •  抹茶落季
    2021-01-05 02:00

    You can only show the values of keys that exist. array_keys() returns an array containing the keys that exist in the array. If there is no output for a key despite the fact that the key exists then the array may contain an empty value for that key.

提交回复
热议问题