I am currently looking through the PHP manual for a way to return part of a string, e.g.
$str = '(number:1)';
$i = preg_return(number:[0-9]*, $str);
which would echo me back a "1".
strstr() would kind of have been nice, but then I would get the last parenthesis also.
One way I could do this is using preg_replace and kind of remove all other strings and only return the number, but I feel that there should be a "easier" (read: better) way to do this...