Hey guys, posting this in newbie section cos really its a pretty simple basic thing. I need to replace a bracketted number with nothing so essentially remove it. like if i had the string "text text (6) text (3) text (112) text", and i performed the replace all the (number)s would disappear, the tihng is, it needs to be variable as the numbers could be anything... Is there some sort of wildcard thing with a % like (%) to represent any number? thanx
this is what i have so far..
$value = str_replace("(%)", '', "$text");