<?php $a = "abab"; echo preg_replace("/(a)/", "$1-", $a); // echo $a;
You have javascript disabled. You will not be able to edit any code.