← All docs

array_flip()

Exchanges all keys with their associated values in an array.

array_flip()

function array_flip(array $array): array

Exchanges all keys with their associated values in an array.

Parameters:

  • $array (array)

Returns: array

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_flip is implemented in the compiler, see the internals page.