array_flip

array_flip -- Flip all the values of an array

Description

array array_flip(array trans);

array_flip() returns an array in flip order.

Example 1. array_flip() example

$trans = array_flip ($trans);
$original = strtr ($str, $trans);
      

Note: This function was added in PHP 4.0.