24
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
])
Conversion functions
ArrayToList
(
array
[,
delimiter
])
BinaryDecode
(
string
,
binaryencoding
)
BinaryEncode
(
binarydata
,
encoding
)
CharsetDecode
(
string
,
encoding
)
CharsetEncode
(
binaryobject
,
encoding
)
Hash
(
string
[,
algorithm
[,
encoding
]])
LCase
(
string
)
ListToArray
(
list
[,
delimiters
])
ToBase64
(
string or binary_object
[,
encoding
])
ToBinary
(
string_in_Base64
or
binary_value
)
ToScript
(
cfvar
,
javascriptvar
,
outputformat
,
ASFormat
)
ToString
(
value
[,
encoding
]
)
URLDecode
(
urlEncodedString
[,
charset
])
URLEncodedFormat
(
string
[,
charset
]
)
Val
(
string
)
XmlFormat
(
string
)
XmlParse
(
xmlText
[[,
caseSensitive
],
validator
])
XmlTransform
(
xml
,
xsl
[,
parameters
])
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
")