Get rid of text in between () in PHP -


this question has answer here:

say have string this:

this string (with parenthesis stuff)

how change to

this string

?

replace it:

preg_replace('/\(.*?\)/', '', $str); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -