Answers for "php find similitur in two array"

PHP
0

php find similitur in two array

<?php
  $array1 = array("a" => "green", "red", "blue");
  $array2 = array("b" => "green", "yellow", "red");
  $result = array_intersect($array1, $array2);
  print_r($result);
?>
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language