bitToString.php
Table of Contents
Functions
- bitToString() : string
- Return the bitstring representation of a number, padded to `bits` characters.
Functions
bitToString()
Return the bitstring representation of a number, padded to `bits` characters.
bitToString(string|int $value, string|int $bits) : string
Wraps the ArangoDB AQL function BIT_TO_STRING(value, bits). It is the inverse of
bitFromString().
Example AQL usage:
BIT_TO_STRING(7, 8) // returns "00000111"
Parameters
- $value : string|int
-
The number to represent.
- $bits : string|int
-
The number of bits (length of the resulting string, 0 … 32).
Tags
Return values
string —The formatted AQL expression.