Iterate over the loop and check whether every array element of A is less than or equal to its corresponding array element of B
for ( $ i = 0 ; $ i < $ N ; $ i ++ ) if ( $ A [ $ i ] > $ B [ $ i ] ) return false ; return true ; }