hi guys,
been trying to get this to work for a while.
say a string is (Bob) and i want to make that just Bob without the parentheses how can i get ri of them.
need to strip the parentheses.
thanks in advance.
This probably isn't the most elegant way to do it, but it works.
$string ="(bob)"; $string = str_replace("(","",str_replace(")","",$string));
try this:
$str = '(Bob)'; $str = str_replace(array('(',')'), '', $str);
Diego