bin2hex
Returns binary data in $val in hexadecimal format
[...] = optional ... = your value
[var $... = ]call bin2hex $val=…
Example code
<!--parser:xtscript-->
var $input = foobar
var $output = call bin2hex $val=$input
print input = $input<br />
print output = $output<br />
<!--/parser:xtscript-->
Show in textareaExample output
Reload
input = foobar
output = 666f6f626172