<?php
$var = "arbitrary";
echo <<<_END
<form method = "post" action = "feed.php">
<input type = "text" name = "$var" />
<input type = "submit" />
</form>
_END;
if (isset($_POST['$var']))
{
echo $_POST['$var'];
}
?>
当我尝试从变量 $var 中检索此 $_POST 数据时,我似乎无法获得它。这可能吗?(从字符串以外的东西获取 $_POST)