Collections functions
General functions
Render functions
Theme permission functions
User 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 6th December 2023 12:05 Europe/London time based on the source file dated 29th November 2023 10:35 Europe/London time.