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.
Other
Array()
| Return Type | Return Description |
| array | A new one-dimensional array, either empty or populated with given arguments. |
No Arguments
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#">