src/ArrayHelper/ArrayHelperClass.php
public function trim($array)
	{
		//set the $inputElement
		$this->inputElement = $array;

		//loop the through the array elements removing the whitespaces
		$this->outputElement = array_map(function($item){

			return trim($item);

		}, $array);

		//return this self same class
		return $this;

	}
public function trim($array)
	{
		//set the $inputElement
		$this->inputElement = $array;

		//loop the through the array elements removing the whitespaces
		$this->outputElement = array_map(function($item){

			return trim($item);

		}, $array);

		//return this self same class
		return $this;

	}
public function trim ( $ array ) { //set the $inputElement $ this -> inputElement = $ array ; //loop the through the array elements removing the whitespaces $ this -> outputElement = array_map ( function ( $ item ) { return trim ( $ item ) ; } , $ array ) ; //return this self same class return $ this ; }
This method loops through array elements removing whitespaces from begining and ending of string element values
@param array $array The input array to be trimmed of whitespace
@return Object \ArrayHelper
This method loops through array elements removing whitespaces from begining and ending of string element values