3-1-Functions:Array

last edited byusericonlmajano 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#">

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word

comments Comments (0)

You need to login in order to comment!