NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hello.
So, I'm going to start a new project and wanted to take some other techniques into hand when creating it.
Now, my project includes a lot of different POST and GET requests.
I was thinking, there must be a better way to check if they're set other than using:-
So, my question is, is there a better way?
It'd be nice to have something like an Array like...
and just be able to check if the POST (or GET) contains either of those.
Thanks in advance.
So, I'm going to start a new project and wanted to take some other techniques into hand when creating it.
Now, my project includes a lot of different POST and GET requests.
I was thinking, there must be a better way to check if they're set other than using:-
PHP:
if(isset($_POST['whatever']))
{
//Do something
}
So, my question is, is there a better way?
It'd be nice to have something like an Array like...
PHP:
$requests = array("upload", "download", "photo", "video");
Thanks in advance.