Documentation

MaterialLedgerHelpers
in package

Useful functions for dealing with the Material Ledger

Table of Contents

Methods

accountsDifference()  : array<string|int, mixed>
Returns the difference of the array of accounts 'A' and accounts 'B' by ID

Methods

accountsDifference()

Returns the difference of the array of accounts 'A' and accounts 'B' by ID

public static accountsDifference(array<string|int, mixed> $a, array<string|int, mixed> $b) : array<string|int, mixed>

For example, with these two arrays of accounts with the following IDs $a = [1, 2, 3, 4] and $b = [1, 2]. accountsDifference($a, $b) will return [3, 4]

Parameters
$a : array<string|int, mixed>
$b : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

        
On this page

Search results