Someone
public php v1 · immutable<?phpfunction rename_get($url,$what_to_replace,$replace_it_with){ $temp = explode($what_to_replace,$url); $output = $temp[1]."".$replace_it_with."".$temp2; return $output;}//how to use this small function:$url = $_SERVER["REQUEST_URI"];$what_to_replace = "var2=bla"; // the old var$replace_it_with = "var2=bli"; // the new var$new_url = rename_get($url,$what_to_replace,$replace_it_with);// $new_url == the new created url?>