WordPress.org

Ready to get started?Download WordPress

Forums

remove brackets function (2 posts)

  1. Mihai
    Member
    Posted 1 year ago #

    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 ?

  2. phillbooth
    Member
    Posted 1 year ago #

    http://php.net/manual/en/function.str-replace.php
    `
    $var = str_replace('(','',$var);
    $var = str_replace(')','',$var);

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.