array_diff_key

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the difference of arrays using keys for comparison
<?php array_diff_key(array $array, array ...$arrays): array
<?php             }

        }



        $progress = array_diff_key(curl_getinfo($curlHandle), self::$timeInfo);



        $this->jobs[(int) $curlHandle] = array(

            'url' => $url,
<?php                 continue;

            }

            $curlHandle = $this->jobs[$i]['curlHandle'];

            $progress = array_diff_key(curl_getinfo($curlHandle), self::$timeInfo);



            if ($this->jobs[$i]['progress'] !== $progress) {

                $this->jobs[$i]['progress'] = $progress;
<?php     {

        $default = ['url' => '', 'options' => null, 'status' => 200, 'body' => '', 'headers' => ['']];

        $this->expectations = array_map(function (array $expect) use ($default): array {

            if (count($diff = array_diff_key(array_merge($default, $expect), $default)) > 0) {

                throw new \UnexpectedValueException('Unexpected keys in process execution step: '.implode(', ', array_keys($diff)));

            }
<?php         $this->expectations = array_map(function ($expect) use ($default) {

            if (is_string($expect)) {

                $expect = array('cmd' => $expect);

            } elseif ($diff = array_diff_key(array_merge($default, $expect), $default)) {

                throw new \UnexpectedValueException('Unexpected keys in process execution step: '.implode(', ', array_keys($diff)));

            }