WordPress at a glance
function is not described

Pelago\Emogrifier\Utilities

ArrayIntersector::intersectWith() public WC 1.0

Computes the intersection of $array and the array with which this object was constructed.

{} It's a method of the class: ArrayIntersector{}

No Hooks.

Return

(Int|String)[]. Returns an array containing all of the values in $array whose values exist in the array with which this object was constructed. Note that keys are preserved, order is maintained, but duplicates are removed.

Usage

$ArrayIntersector = new ArrayIntersector();
$ArrayIntersector->intersectWith( $array );
$array(array) (required)
-

Code of ArrayIntersector::intersectWith() WC 5.4.1

<?php
public function intersectWith(array $array)
{
    $invertedArray = \array_flip($array);

    $invertedIntersection = \array_intersect_key($invertedArray, $this->invertedArray);

    return \array_flip($invertedIntersection);
}