array_column()

array_column(array $array, $column_key[, $index_key = NULL])

Parameters:
  • $array (array) – Array to fetch results from
  • $column_key (mixed) – Key of the column to return values from
  • $index_key (mixed) – Key to use for the returned values
Returns:

An array of values representing a single column from the input array

Return type:

array

For more information, please refer to the PHP manual for array_column().

doc_CodeIgniter
2016-10-15 16:30:51
Comments
Leave a Comment

Please login to continue.