Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove parentheses and contents from string

$string = "ABC (Test1)";
echo preg_replace("/([^)]+)/","",$string); // 'ABC '
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #parentheses #contents #string
ADD COMMENT
Topic
Name
9+6 =