Konversi kunci menjadi nilai php

<?php
$input = array("oranges", "apples", "pears");
$flipped = array_flip($input);
print_r($flipped);
?>
  
// output
Array (
    [oranges] => 0
    [apples] => 1
    [pears] => 2
)
Zidane (Vi Ly - VietNam)