i need to replace only the last occurrence of anything in parenthesis using preg_replace in PHP -
i need replace occurrence of in parenthesis @ end of string nothing. dont want same happen inside string. example if have string "special (not) value (sv)" preg_replace should replace end parenthesis result should "special (not) value"
have tryed using explode function? can define pattern, , can concatenate arrays afterwards... http://php.net/manual/en/function.explode.php
Comments
Post a Comment