
June 16th, 2009, 07:28 PM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 6
Time spent in forums: 1 h 35 m
Reputation Power: 0
|
|
|
Thank you for quick reply, well the value will be only filled with inputs so markup will be clean, however speed is important, i just found what
preg_replace('|value="'.$i.'"|','value="'.$i.'" checked="checked"',$v,1);
is three times quicker than
preg_replace('/<input(?=.*value="123")/','<input checked="checked"$1',$v,1);
|