Oihana PHP Arango

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
example
use function oihana\arango\db\functions\bit\bitDeconstruct;

$expr = bitDeconstruct(14);   // 'BIT_DECONSTRUCT(14)'
see
https://docs.arangodb.com/stable/aql/functions/bit/#bit_deconstruct
bitConstruct()
since
1.1.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results