I've got an old script here, which's based on the functionality that it creates variables from the POST Array. I know it's old and shouldn't be used, but which parameter do I need to activate it? $_POST['output']
should automatically become $output
.
I've been searching on php.net and google, but I can't seem to find the name of this parameter.
Easy
extract($_POST);
Now
echo $output;
EDITS :
The above method has been deprected now. It can be achieved like this
extract(array_intersect_key($_POST, $array_of_expected_keys))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With