Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 07:05 Europe/London time based on the source file dated 11th March 2024 11:40 Europe/London time.