20
CFML Quick Reference
CFML functions
Array functions
ArrayAppend
(
array
,
value
)
ArrayAvg
(
array
)
ArrayClear
(
array
)
ArrayDeleteAt
(
array
,
position
)
ArrayInsertAt
(
array
,
position
,
value
)
ArrayIsEmpty
(
array
)
ArrayLen
(
array
)
ArrayMax
(
array
)
ArrayMin
(
array
)
ArrayNew
(
dimension
)
ArrayPrepend
(
array
,
value
)
ArrayResize
(
array
,
minimum_size
)
ArraySet
(
array
,
start_pos
,
end_pos
,
value
)
ArraySort
(
array
,
sort_type
[,
sort_order
])
ArraySum
(
array
)
ArraySwap
(
array
,
position1
,
position2
)
ArrayToList
(array [,
delimiter
])
IsArray
(
value
[,
number
])
ListToArray
(
list
[,
delimiters
])
Authentication functions
GetAuthUser
()
IsUserInRole
("
role_name
")
Conversion functions
ArrayToList
(array [,
delimiter
])
Hash
(
string
)
LCase
(
string
)
ListToArray
(
list
[,
delimiters
])
ToBase64
(
string
or
binary_object
[,
encoding
])
ToBinary
(
string_in_Base64
or
binary_value
)
ToString
(
any_value
[,
encoding
])
URLDecode
(
urlEncodedString
[,
charset
])
URLEncodedFormat
(
string
[,
charset
])
Val
(
string
)
XmlFormat
(
string
)
XmlParse
(
xmlString
[,
caseSensitive
] )
XmlTransform
(
xmlString
|
xmlObj
,
xslString
)
Date and time functions
CreateDate
(
year
,
month
,
day
)
CreateDateTime
(
year
,
month
,
day
,
hour
,
minute
,
second
)
CreateODBCDate
(
date
)
CreateODBCDateTime
(
date
)
CreateODBCTime
(
date
)
CreateTime
(
hour
,
minute
,
second
)
CreateTimeSpan
(
days
,
hours
,
minutes
,
seconds
)
DateAdd
("
datepart
",
number
, "
date
")
DateCompare
("
date1
", "
date2
" [, "
datePart
"])
DateConvert
("
conversion-type
", "
date
")
DateDiff
("
datepart
", "
date1
", "
date2
")
DateFormat
("
date
" [, "
mask
" ])
DatePart
("
datepart
", "
date
")
Day
("
date
")
DayOfWeek
("
date
")