bitDeconstruct.php
Table of Contents
Functions
- bitDeconstruct() : string
- Deconstruct a number into the array of its set bit positions (zero-based).
Functions
bitDeconstruct()
Deconstruct a number into the array of its set bit positions (zero-based).
bitDeconstruct(string|int $value) : string
Wraps the ArangoDB AQL function BIT_DECONSTRUCT(value). It is the inverse of
bitConstruct().
Example AQL usage:
BIT_DECONSTRUCT(14) // returns [1, 2, 3]
Parameters
- $value : string|int
-
The number to deconstruct.
Tags
Return values
string —The formatted AQL expression.