explode('-', $section), explode(',', $elf)); return count( array_intersect(range($section1[0], $section1[1]), range($section2[0], $section2[1])) ) > 0; } ) );