Core Function BinaryStr

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(binary-array)
(Remarks)
Line 25: Line 25:
 
=== Remarks ===
 
=== Remarks ===
  
A string has a value of zero.
+
N/A
  
 
=== Example ===
 
=== Example ===

Revision as of 00:35, 12 November 2011

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("z0", "Hello World!")
println( "Binary HEX: '" . BinaryStr($binary) . "'" )

Now with , for separation

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