3-1-Functions:Array
last edited by
lmajano
on 23-Aug-2009
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
Other
Implemented
Usage Syntax
Array()
Return Information
| Return Type | Return Description |
| array | A new one-dimensional array, either empty or populated with given arguments. |
Arguments
No Arguments
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
Comments (