Subtraction Of Arrays – Algorithm
Subtraction Of Arrays – How to get out of an array A only items that are not in array b, thus subtracting from array A all items of array B. PHP: We can try on our own: <?php function SubtractionOfArrays($vectorA,$vectorB) { $countA=count($vectorA); $countB=count($vectorB); $numberOfElementsCaught=0; for($i=0;$i<$countA;$i++) { for($j=0;$j<$countB;$j++) { if($vectorA[$i]==$vectorB[$j]) $numberOfElementsCaught+=1;Continue Reading