Extract all variables sent with POST , GET or PUT?
I am tired of extracting each variable posted by the FORM. weather its a $_GET or $_POST or $_PUT. I always wondered How can I extract all variables from request, especially $_POST?
Normally, I do
print_r($_POST)
OR
var_dump($_POST);
to see the contents in the $_POST variable. then extract them each one line at a time. which is , in some cases a big waste of time.
Easiest Method I found was very easy:
extract($_POST);
his code answers his …