Is it possible to change/update a query string in a URL using PHP?
<p>Is it possible to programatically change the query URL within PHP? I know I can use the <code>$_GET['something']</code> function to <em>get</em> data from a URL query, but I don't know how to <em>change</em> a query string programatically in PHP.</p>

<p>This is an example of what I want to do:</p>

<pre><code>//---- index.php ----\\    
$variable = 23;
</code></pre>

<p>And my URL is: <a href="http://example.com/index.php?variable=23" rel="nofollow">http://example.com/index.php?variable=23</a></p>

<p>So if I make <code>$variable = 10</code> later on in the program (not using headers, and not hard-coded into a link), I want to be able to programatically update the query URL, so that my URL will now read:</p>

<p><a href="http://example.com/index.php?variable=10" rel="nofollow">http://example.com/index.php?variable=10</a></p>

<p>Is this even possible, without using forms?</p>
