array_flip
spatie/fork
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Exchanges all keys with their associated values in an array
<?php array_flip
(array
$array
): array