Voting

: five minus three?
(Example: nine)

The Note You're Voting On

Anonymous
7 years ago
To get the params (url query) as Associative array, use this function:

<?php
/**
* Returns the url query as associative array
*
* @param string query
* @return array params
*/
function convertUrlQuery($query) {
$queryParts = explode('&', $query);

$params = array();
foreach (
$queryParts as $param) {
$item = explode('=', $param);
$params[$item[0]] = $item[1];
}

return
$params;
}
?>

<< Back to user notes page

To Top