Title: remove brackets function
Last modified: August 20, 2016

---

# remove brackets function

 *  [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/remove-brackets-function/)
 * Hey guys
    In the plugin i`m working on i have a value like in this example:
 * $var = $item[‘name’]
 * Lets assume $var = Online Payment for Group Retreat (13135: Clear Seeing)
 * How can i remove the () from the item name ?

Viewing 1 replies (of 1 total)

 *  [phillbooth](https://wordpress.org/support/users/phillbooth/)
 * (@phillbooth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/remove-brackets-function/#post-3488389)
 * [http://php.net/manual/en/function.str-replace.php](http://php.net/manual/en/function.str-replace.php)
   `
   $var = str_replace(‘(‘,”,$var); $var = str_replace(‘)’,”,$var);

Viewing 1 replies (of 1 total)

The topic ‘remove brackets function’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [phillbooth](https://wordpress.org/support/users/phillbooth/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/remove-brackets-function/#post-3488389)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
