<?php $html = 'data-content="111"'; $var_2 = "222"; $html = preg_replace('/(["\'])111\1/i', "$01$var_2$1",$html); echo $html;
You have javascript disabled. You will not be able to edit any code.