Collections functions
General functions
Render functions
Theme permission functions
Resource functions

reshape_array_by_value_keys()

Description

Reshape array using the keys of its values. All values must contain the selected keys.

Parameters

ColumnTypeDefaultDescription
$a array Array to reshape
$k string The current elements' key to be used as the KEY in the new array. MUST be unique otherwise elements will be lost
$v string The current elements' key to be used as the VALUE in the new array

Return

array

This article was last updated 30th September 2022 18:05 Europe/London time based on the source file dated 15th September 2022 15:40 Europe/London time.