Flip all keys with their associated values in an array:
The array_flip() function flips/exchanges all keys with their associated values in an array.
Parameter | Description |
---|---|
array | Required. Specifies an array of key/value pairs to be flipped |
Return Value: | Returns the flipped array on success. NULL on failure |
---|---|
PHP Version: | 4+ |