Contents |
Creates a new one-dimensional array. A comma-delimited list of values/variables/functions can be passed as arguments with which to populate the array.
Array functions
Array(),Array([list])
| Return Type | Return Description |
| array | A new one-dimensional array, either empty or populated with given arguments. |
| Name | Type | Required | Position | Default | Description |
| list | mixed | No | 1 | blank | A comma-delimited list of values/variables/functions can be passed as arguments with which to populate the array. |
Array() Array( mixed ) <cfset foo = Array()> <cfdump var="#foo#"> <cfset foo = Array("a","b","c","d")> <cfdump var="#foo#"> <cfset foo = Array(Array(1,2,3,4), Struct(name: "Joe", age: 30))> <cfdump var="#foo#">
Categories: