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 documentationassociative_array_create_ordered

associative_array_create_ordered ([list list_1, list list_2, list list_3, ..., list list_N]) ⇒ associative_array

Returns a new ordered associative array.

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 = associative_array_create_ordered([77, "Jack"], [41, "Emma"], [98, "James"], [21, "Jamie"])
    
Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.