toHexString

Returns a string containing a hex dump of a block of string data.

Syntax

toHexString(content, groupSize)

Returns

(string) a hex dump of a block of input string data.

Parameters

content (string)
source
groupSize (integer)
how many bytes are grouped together before inserting a space into the output. e.g. group size 0 has no spaces, group size 1 looks like: "be a1 c2 ff", group size 2 looks like "bea1 c2ff".

Usage

echo(toHexString("123456798", 1));