Go to: Synopsis. Return value. MEL examples.
string[] stringArrayIntersection(string[] $string1, string[] $string2)
string[] : Array of strings that both arrays have in common. |
Variable Name | Variable Type | Description |
---|---|---|
$string1 | string[] | First string array. |
$string2 | string[] | Second string array. |
string $array1[] = {"item2", "item1", "item3"}; string $array2[] = {"item5", "item3", "item4"}; stringArrayIntersection($array1, $array2); // Result: item3 //