To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationmap_flip

map_flip (associative_array a) ⇒ associative_array

Flips the associative array a, turning keys into values and values into keys.

Alternative function names: associative_array_flip
First available: Version 1.3.7.20

Notes

Version 1.4.2 dropped the alternative name assoc_flip and added the map_flip alternative name.

As of version 1.8.13, this is a reference function and will change the associative array directly.

Version 1.9.9 switched from associative_array_flip to map_flip.

Comments

There are no comments on this page.

New comment
Reply
Code previewClose
Feedback 👍
Comments are sent via email to me.