输出html中的变量

时间:2016-02-12 14:01:34

标签: php wordpress

我在wordpress上自定义一个插件,我想在html输出上显示一个GET变量?我该怎么办?

$mlpoutputhtml .= "Selected category: "; + the get variable

由于

2 个答案:

答案 0 :(得分:0)

$_GET['thename'];

在此处详细了解:http://php.net/manual/en/reserved.variables.get.php

答案 1 :(得分:0)

此,

$mlpoutputhtml .= "Selected category: " . $_GET['your_variable'];