'', 'replacequestion' => '' ), $params); $value = str_replace('?', $params['replacequestion'], $value); if (empty($params['replaceslashes'])) { return urlencode($value); } $value = str_replace('%2F', $params['replaceslashes'], $value); $value = str_replace('/', $params['replaceslashes'], $value); return urlencode($value); } }