Forum Moderators: coopster
$last_open = strrpos($string,"[");
$last_close = strrpos($string,"]");
$length = ($last_close-$last_open-1);
$last_num = substr($string,$last_open+1,$length);
[edited by: eelixduppy at 4:38 pm (utc) on May 24, 2006]