array_flip
symfony/var-dumper
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Exchanges all keys with their associated values in an array
array_flip
(array
$array
): array
{
parent
::
__construct
(
$value
);
$this
->
preservedSubset
=
array_intersect_key
(
$value
,
array_flip
(
$preservedKeys
));
$this
->
cut
-=
\count
(
$this
->
preservedSubset
);
}
}
Caster/CutArrayStub.php