list Function

Welcome to our newly overhauled Zephyr pages! See our new Overview, Examples, and Index.
Feedback is welcome at bottom of each page.


Converts any other type to a list.

list list( mixed value )

Converts valueto a list, according to the following rules:

  • If passed a list, returns that list
  • If passed null, returns null
  • If passed anything else, returns list with exactly one item in it ( value )


{list([1,2,3])} ----> [1,2,3]
{list("test")}  ----> ["test"]
{list(null)}    ---->