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 19th March 2024 07:05 Europe/London time based on the source file dated 11th March 2024 11:40 Europe/London time.