Skip to content

Function: array_flip() ​

array_flip<T>(array): Record<string, number>

Defined in: src/php-arrays.ts:249

Exchange all keys with their associated values in an array.

Type Parameters ​

T ​

T extends string | number

Parameters ​

array ​

T[]

The source array

Returns ​

Record<string, number>

The flipped record

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.