array_intersect_key

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the intersection of arrays using keys for comparison
<?php array_intersect_key(array $array, array ...$arrays): array
<?php             $test = $event && $params[0]($event['name'], $event['params']);

        } else {

            $test = (bool) collect(data_get($this->effects, 'dispatches'))->first(function ($item) use ($value, $params) {

                $commonParams = array_intersect_key($item['params'], $params);



                ksort($commonParams);

                ksort($params);
<?php     static function setParametersToMatchingProperties($component, $params)

    {


        collect(array_intersect_key($params, Utils::getPublicPropertiesDefinedOnSubclass($component)))

            ->each(function ($value, $property) use ($component) {

                $component->{$property} = $value;

            });