I need a more efficient way of checking if multiple $_POST parameters isset
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have these variables, and I need to check if all of them isset(). I feel there has to be a more efficient way of checking them rather than one at a time. $jdmMethod = $_POST [ 'jdmMethod' ]; $cmdMethod = $_POST [ 'cmdMethod' ]; $vbsMethod = $_POST [ 'vbsMethod' ]; $blankPage = $_POST [ 'blankPage' ]; $facebook = $_POST [ 'facebook' ]; $tinychat = $_POST [ 'tinychat' ]; $runescape = $_POST [ 'runescape' ]; $fileUrl = escapeshellcmd ( $_POST [ 'fileUrl' ]); $redirectUrl = escapeshellcmd ( $_POST [ 'redirectUrl' ]); $fileName =