Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_array_intersect

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2020-03-30T01:22:35Z

Updated

2020-03-30T01:22:35Z

<?php

$array1 = array("a" =>
 "green", "red", "blue");

$array2 = array("b" =>
 "green", "yellow", "red");

$result = array_intersect($array1, $array2);

print_r($result);

?>
INFO