Writing a function to return common values from different arrays PHP

So iv’e been solving different php problems but I’ve been stuck on this one any solution?

<?php

$array1 = array("banana", "pear", "apple", "orange");
$array2 = array("yellow", "orange", "green");

function commonValue($tab = [], $tabTwo = []) {
    //----------do not modify the code above----------
    
    //----------do not modify the code bellow----------
}

commonValue($array1, $array2); // return ["yellow"];