Hello List, I'm trying to extract the sub-string from a string which appears between a pair of brackets,
e.g. from "Mozart Requiem (15)" I want to extract the string "15" I tried this: substr($s, (strpos($s, "(") + 1), (strpos($s, ")") - strpos($s, "(") - 1)) but it returned the error: "Parse error: parse error, unexpected T_STRING in /.../loan-edit.php on line 15" What have done wrong? Thanks in advance, Richard -- UEA/MUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php