function ajax_get_url in Ajax 6
Gets url parts
Parameters
$url String:
Return value
Asoc
1 call to ajax_get_url()
- ajax_get_redirect in ./
ajax.module - Gets redirect Sometimes the redirect can be an array in the form of 0 => path 1 => query 2 => fragment
File
- ./
ajax.module, line 315
Code
function ajax_get_url($url) {
$p = parse_url($url);
if (!empty($p['query'])) {
parse_str($p['query'], $q);
$p['query'] = $q;
}
else {
$p['query'] = array();
}
return $p;
}