Answers for "what does the array_diff return if no diff"

PHP
5

array_diff

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

Array
(
    [1] => blue
)
Posted by: Guest on May-20-2020

Code answers related to "what does the array_diff return if no diff"

Browse Popular Code Answers by Language