PHP代码中未定义的索引

PHP代码中未定义的索引,php,variables,indexing,undefined,Php,Variables,Indexing,Undefined,我在这行代码中遇到一个未定义的索引错误: switch ($_REQUEST["___p"]) 我想我需要声明变量。我要将上面的行更改为什么?使用isset()确保预先存在,或者忽略它: switch (@$_REQUEST["___p"]) Hi@u_mulder,happy holidays:]只是get或post数组中没有这样的索引

我在这行代码中遇到一个未定义的索引错误:

switch ($_REQUEST["___p"])

我想我需要声明变量。我要将上面的行更改为什么?

使用
isset()
确保预先存在,或者忽略它:

switch (@$_REQUEST["___p"])

Hi@u_mulder,happy holidays:]只是get或post数组中没有这样的索引