Phang  2.1
 All Classes Files Functions Variables Pages
Functions
array.php File Reference

Functions to manipulate arrays. More...

Functions

 array_assoc_implode ($key_glue, $glue, $array)
 An implode function for associative arrays, similiar to PHP's built-in implode for normal arrays, although you pass the glue for the key as well.
 array_combine_truncate ($array_keys, $array_values)
 Wrapper for array_combine, which truncates the array if $array_keys and $array_values are different sizes.
 array_data_sort (&$data, $columns, $directions=array())
 Sort an array of table data by columns $data = array of associative rows $columns = column name (if one) or array of column names, in order of which sorts first $directions [optional] = 'asc' or 'desc' (if only one column), or an array of column_name=>direction allows sorting by up to three columns - can be extended as appropriate.
 array_remove (&$arr, $val)
 Remove a value from an array.
 one ($array)
 Returns one (the first) element in an array.

Detailed Description

Functions to manipulate arrays.

Author:
James Tierney / Fifteen Digital Developers Ltd

Function Documentation

array_assoc_implode (   $key_glue,
  $glue,
  $array 
)

An implode function for associative arrays, similiar to PHP's built-in implode for normal arrays, although you pass the glue for the key as well.

$key_glue = The string to use as glue between the key and the value $glue = The glue(like implode()(between each item)) $array = And finally the associative array