Метод | Описание | |
---|---|---|
arrayUnshiftAssoc ( array &$arr, string $key, mixed $val ) : array | Prepend an assoc array item as first entry for a given array. | |
search ( array $array, string $searchText, boolean $sensitive = false ) : array | Search trough all keys inside of an array, any occurence will return the rest of the array. | |
toObject ( array $array ) : object | Create an object from an array. | |
typeCast ( array $array ) : array | TypeCast values from a mixed array source. numeric values will be casted as integer. |
public static search ( array $array, string $searchText, boolean $sensitive = false ) : array | ||
$array | array | The multidimensional array keys. |
$searchText | string | The text you where search inside the rows. |
$sensitive | boolean | Whether to use strict sensitive search (true) or case insenstivie search (false). |
Результат | array | The modified array depending on the search result hits. |