PHP Code:
$URL_logged = '/forums/showthread.php?t=9356&page=2';
if (preg_match ("/showthread.php\?(t|p)=([0-9]{1,10})/i", $URL_logged, $threadinfo))
{
// Define the location
$page = 'Viewing Thread';
// in here I need to get the numeric value following the showthread.php?t= string above
// ----------------------------------------------
// --------- THIS IS WHERE I NEED HELP!!! ------
// ----------------------------------------------
$threadid = $threadinfo[2];
echo $threadid;