Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 21st April 2021 19:05 Europe/London time based on the source file dated 20th April 2021 21:30 Europe/London time.