<?php $str ="(hello)"; If(substr($str,0,1) == "(" || substr($str, -1) == ")") { // Replace string $str = "hello world"; } Echo $str;
You have javascript disabled. You will not be able to edit any code.