Class SGL_Array

Description

Provides array manipulation methods.

Located in /SGL/Array.php (line 46)


	
			
Method Summary
 string implodeWithKeys (string $glue, array $hash, [string $valwrap = ''])
 array mergeReplace (array $array, array $newValues)
 array removeBlanks (array $elem)
Methods
implodeWithKeys (line 75)

Returns an array with imploded keys.

string implodeWithKeys (string $glue, array $hash, [string $valwrap = ''])
  • string $glue
  • array $hash
  • string $valwrap
mergeReplace (line 103)

Merges two arrays and replace existing entrys.

Merges two Array like the PHP Function array_merge_recursive. The main difference is that existing keys will be replaced with new values, not combined in a new sub array.

Usage: $newArray = SGL_Array::mergeReplace($array, $newValues);

  • return: Resulting Array from replacing Process
array mergeReplace (array $array, array $newValues)
  • array $array: First Array with 'replaceable' Values
  • array $newValues: Array which will be merged into first one
removeBlanks (line 56)

Strips 'empty' elements from supplied array.

'Empty' can be a null, empty string, false or empty array.

array removeBlanks (array $elem)
  • array $elem

Documentation generated on Tue, 23 Feb 2010 18:14:27 +0000 by phpDocumentor 1.4.3