我如何从$ _POST获得键值? [英] How do I get the key values from $_POST?

查看:137
本文介绍了我如何从$ _POST获得键值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

echo $_POST["name"]; //returns the value a user typed into the "name" field

我希望能够回报也是关键的文本。在这个例子中,我想回到文本名。我可以这样做吗?

I would like to be able to also return the text of the key. In this example, I want to return the text "name". Can I do this?

推荐答案

退房array_keys()函数假设这是PHP的。

Check out the array_keys() function assuming this is PHP.

http://us2.php.net/array_keys

这篇关于我如何从$ _POST获得键值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆