Answers for "php array difffere"

PHP
0

get diff array php

$a=[1,2,3];
$b=[2,4,6];
$x = array_diff($b,$a);
echo "<pre>";
print_r($x);
Posted by: Guest on December-02-2021
0

array_diff php

<?php
$array1 = array("a" => "green", "red", "blue", "red");
$array2 = array("b" => "green", "yellow", "red");
$result = array_diff($array1, $array2);

print_r($result);
?>
Posted by: Guest on November-11-2021

Browse Popular Code Answers by Language