我想发现,是否设定了变量。 PHP s isset(a)功能(即: isset($myVariable)通常可以向我提供变数的固定地位。 然而,我想将变量作为表述。 这是可能的吗? 如果是,如何?
A little more context and detail: I have several image submit buttons in an HTML form, each named DeleteFileButtonNNN where NNN is an integer (actually, a file ID number). When the user clicks, say, the button associated with NNN=2, the form is submitted and $_POST[ DeleteFileButton2_x ] gets set (whereas $_POST[ DeleteFileButton1_x and $_POST[ DeleteFileButton3_x ] will not be set). I want to be able to loop through the $_POST array in order to discover which button was clicked.
我可以很容易地通过一旁或旁边的 lo子来划定 lo体的界限,因为所有可能的卷宗(即NNN值)都储存在MySQL的桌上。 我需要帮助的是,具体指明。 删除“FileButtonNNN”各部分,作为“POST”阵列中阵列的阵列要素指数,因为这一提法需要表述(例如,一个扼杀性组,如删除FileButton .$anInteger._x)。 然而,我不相信PHP允许我把“POST”阵列作为“POST[可兑换美元]。
是否有人? 事先感谢你。