Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pos = strpos($url, $getParam);
- $tmp = substr($url, ($pos + strlen($getParam) + 1));
- for($i=0; $i<strlen($tmp); $i++){
- if($tmp[$i]=="&"){
- break;
- }
- $tmpValue .= $tmp[$i];
- }
- $url = str_replace($getParam . "=" . $tmpValue, $getParam . "=" . $tmpValue . $value, $url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement