Return to Snippet

Revision: 46134
at May 13, 2011 08:54 by burnleywallet


Initial Code
$str = trim(preg_replace('/\s*\([^)]*\)/', '', $str));

Initial URL
http://stackoverflow.com/questions/1336672/php-remove-brackets-contents-from-a-string

Initial Description


Initial Title
Remove content in brackets

Initial Tags
regexp

Initial Language
PHP