PHP Manual
Prev |  | Next

# 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

      1
      2 $trans = array_flip ($trans);
      3 $original = strtr ($str, $trans);
      4

> Note: This function was added in PHP 4.0.

Prev | Home | Next
array_count_values | Up | array_keys