Type conversion functions convert values of one type into another. See variable types for a general description of the types used in PhixFlow.
The following conversion functions are available:
-
changeCharset — changeCharset(value, charset) Converts a binary string into one with the appropriate charset
-
htmlToXML — htmlToXML(string) Converts a string containing HTML to a valid XML string.
-
jsonToItems — jsonToItems (JSON, JSON Path, Lenient) Converts a block of JSON data into a recordset which contains the attributes for each node.
-
jsonToXML — jsonToXML(string) Converts a JSON string to an XML string.
-
toDate — toDate(dateString) Converts a date in text into an actual date type.
-
toHex — toHex(string to convert) Convert a string value to a hex value.
-
-
toNumber — toNumber(value) Converts various data types into a number.
-
toString — toString(value, \[dateFormat\]) Converts a value into a string.
-
-
xmlToItems — xmlToItems(XML, XPath) Extracts nodes from a chunk of XML (a string) and creates a list of items
-
zipExtract — zipListFIlest(zipFile, filename, charset) Extracts a named file from an archive
-
zipListFiles — zipListFiles(zipFile) Gets a list of filenames from an archive file
toDate(dateString)
or(dateString, formatString)
: Converts a date in text into an actual date type.toHex(string to convert)
: Convert a string value to a hex value.toDate(value)
: Converts various data types into a number.toString
(value, dateFormat
)
: Converts a value into a string.