Collections functions
General functions
Node 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 5th May 2024 17:35 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.