I have this code
<?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<3; $i++)
{
$new_source=preg_replace( $what,$this,$source[$i],$count);
echo $new_source;
};
?>
I need to replace $label=1; or $label=x with $label=0 but the x is variable.
clock=1withclock=clock=0