Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

search_array_by_keyvalue()

Description

Function can be used to order a multi-dimensional array using a key and corresponding value

Parameters

ColumnTypeDefaultDescription
$array2search array multi-dimensional array in which the key/value pair may be present
$search_key string key of the key/value pair used for search
$search_value string value of the key/value pair to search
$return_array array array to which the matching elements in the search array are pushed - also returned by function

Return

array $return_array

This article was last updated 14th July 2020 00:05 Europe/London time based on the source file dated 9th July 2020 12:41 Europe/London time.