这个查询字符串的含义是什么?

时间:2017-11-19 04:45:17

标签: php html url

我有一个PHP项目的目录,我试图根据URL找到代码,任何人都知道我在哪里可以找到下面的文件部分:

index.php?step=three

2 个答案:

答案 0 :(得分:1)

index.php?step=three

   $va= $_GET['step'];


 print $va;

你的回答是:三个

答案 1 :(得分:0)

这里有一个网址:

index.php?step=three

然后查询字符串为:

step=three

在这种情况下,查询包括:值为3的关键步骤。

您可以使用以下代码访问查询字符串键的值:

$id = $_GET['step'];

上面的代码获取step的值,即3。