I assume that you really want to get the result of the intersection, not just the test if both rectangles intersect.
The intersection of rect1 = (l1, t1, r1, b1) and rect2 = (l2, t2, r2, b2) is again a rectangle:
rectIntersection = ( max(l1, l2), max(t1, t2), min(r1, r2), min(b1, b2) )
rectIntersection, of course, is empty if left >= right || top >= bottom, assuming the rectangle is left / top and right / bottom exception.
Rectangles intersect if
l1 < r2 && l2<r1 && t1<b2 && t2<t1