replace a number random form a string in PHP
<p>I have this code</p>

<pre><code>&lt;?php

$source[]="clock=1,time=1,stamp=3,color=33";
$source[]="clock=2,time=1,stamp=1,color=61";

$label="clock";

$what=$label."=(\d)";
$this="clock=0";

for($i=0; $i&lt;3; $i++)
{
$new_source=preg_replace( $what,$this,$source[$i],$count);
echo $new_source;
};

?&gt;
</code></pre>

<p>I need to replace $label=1; or $label=x with $label=0 but the x is variable.</p>
