Class yii\helpers\ArrayHelper

Inheritanceyii\helpers\ArrayHelper » yii\helpers\BaseArrayHelper
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/helpers/ArrayHelper.php

ArrayHelper provides additional array functionality that you can use in your application.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getColumn() Returns the values of a specified column in an array. yii\helpers\BaseArrayHelper
getValue() Retrieves the value of an array element or object property with the given key or property name. yii\helpers\BaseArrayHelper
htmlDecode() Decodes HTML entities into the corresponding characters in an array of strings. yii\helpers\BaseArrayHelper
htmlEncode() Encodes special characters in an array of strings into HTML entities. yii\helpers\BaseArrayHelper
index() Indexes an array according to a specified key. yii\helpers\BaseArrayHelper
isAssociative() Returns a value indicating whether the given array is an associative array. yii\helpers\BaseArrayHelper
isIndexed() Returns a value indicating whether the given array is an indexed array. yii\helpers\BaseArrayHelper
keyExists() Checks if the given array contains the specified key. yii\helpers\BaseArrayHelper
map() Builds a map (key-value pairs) from a multidimensional array or an array of objects. yii\helpers\BaseArrayHelper
merge() Merges two or more arrays into one recursively. yii\helpers\BaseArrayHelper
multisort() Sorts an array of objects or arrays (with the same structure) by one or several keys. yii\helpers\BaseArrayHelper
remove() Removes an item from an array and returns the value. If the key does not exist in the array, the default value will be returned instead. yii\helpers\BaseArrayHelper
toArray() Converts an object or an array of objects into an array. yii\helpers\BaseArrayHelper