<?list($start, $end) = explode("-", $CurRef);$start = substr($start, 2); // Aqui sacamos el primer "tn"$start = "00000".($start+1);