FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
mailpoet
/
vendor-prefixed
/
pelago
/
emogrifier
/
src
/
Utilities
Edit File: ArrayIntersector.php
<?php declare (strict_types=1); namespace MailPoetVendor\Pelago\Emogrifier\Utilities; if (!defined('ABSPATH')) exit; class ArrayIntersector { private $invertedArray; public function __construct(array $array) { $this->invertedArray = \array_flip($array); } public function intersectWith(array $array) : array { $invertedArray = \array_flip($array); $invertedIntersection = \array_intersect_key($invertedArray, $this->invertedArray); return \array_flip($invertedIntersection); } }
Save
Back