Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

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

Notes

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.

YASS
$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.

Comments
Feedback 👍
Comments are sent via email to me.