Checks if ( i , j ) is valid , a point ( i , j ) is valid if point ( arr [ i ] , arr [ j ] ) satisfies the equation y = mx + c And i is not equal to j
< ? php function isValid ( $ arr , $ i , $ j , $ m , $ c ) {