Get rid of text in between () in PHP -
this question has answer here:
- remove text between parentheses php 7 answers
say have string this:
this string (with parenthesis stuff)
how change to
this string
?
replace it:
preg_replace('/\(.*?\)/', '', $str);
Comments
Post a Comment