The function checks if the array elements are consecutive If elements are consecutive , then returns true , else returns false
< ? php function areConsecutive ( $ arr , $ n ) { if ( $ n < 1 ) return false ;