<?php $input = array("oranges", "apples", "pears"); $flipped = array_flip($input); print_r($flipped); ?>