4
So, what I am hearing is that I can simply delete these lines, and anytime I need to access $_POST data, I should just use $_POST['thingy']. OK, I will take Mithrandir's advice and not be lazy.
On a related note, if I want to send all the POST data to a function, can I just do this:
$result = doYourThingWithPOSTData($_POST);
Does that make a copy, or can I send it by reference by defining my function like this (I am a C++ programmer in real life, so this syntax could be wrong):
function doYourThingWithPOSTData(&$_POST){ . . . }
Or, is there a better way to make all current $_POST data available inside other functions and classes other than explicitly passing it? Basically, I have code that works now, but I am refactoring to make it much simpler and object-oriented. Before, everything was in index.php, but that has grown too big to manage.
Thanks for any help.