Create variables from POST
php, post
Solution
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))
Problem
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.