>>553
こういうこと?

$str = $prevstr = '■■◎■■';

while (($str = preg_replace('/■/', '♪', $str, 1)) != $prevstr) {
echo $str, "<br />";
$prevstr = $str;
}