Parsing GET/POST parameters into an array

03/02/2016

In Drupal 7:

// Query params from url.
$query_params = drupal_get_query_parameters();

// Query params from POST.
$query_params = drupal_get_query_parameters($_POST);