Core Function BinaryStr

From Sputnik Wiki
Jump to: navigation, search
BinaryStr( <binary-array>, <separator> ) 

Contents

Description

Create a Hex string from a binary array.

Parameters

binary-array

A variable containing a binary array.

separator

A string to place between each element default is a single space.

Return Value

Success: Returns an hex string.

Failure: Returns empty string.

Remarks

N/A

Example

$binary = Pack("A*", "Hello World!");
println( "Binary HEX: '" . BinaryStr($binary) . "'" );

Now with , for separation

$binary = Pack("A*", "Hello World!");
println( "Binary HEX: '" . BinaryStr($binary, ",") . "'" );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox