FUNCTION:ARRAY
last edited by
tbankert
on 09-Sep-2011
Contents |
Array
Description
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.
Category
Array functions
Implemented
Usage Syntax
Array(),Array([list])
Return Information
| Return Type | Return Description |
| array | A new one-dimensional array, either empty or populated with given arguments. |
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. |
Example Usage
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#">
SideBar
User Login