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_create_ordered

map_create_ordered ([list list_1, list list_2, list list_3, ..., list list_N]) ⇒ map

Returns a new ordered map.

Alternative function names: map_create_ordered
First available: Version 1.6.8


Although this function normally generates a new empty ordered associative array, if parameters are given they will be used within the associative array. The parameters should be lists with two elements - the key and the value.

$a = map_create_ordered([77, "Jack"], [41, "Emma"], [98, "James"], [21, "Jamie"])

Version 1.9.9 switched from associative_array_create_ordered to map_create_ordered.


There are no comments on this page.

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