<?php $string="{1},[2],(3),<4>"; // Replaces closing square, curly, angle brackets with round brackets $string = preg_replace('/[{[<]/', '(', $string); $string = preg_replace('/[}>\]]/', ')', $string); echo $string;
You have javascript disabled. You will not be able to edit any code.