src/ADT/String.php
public function split( $delimiter )
	{
		if( is_int( $delimiter ) )
			$list	= str_split( $this->string, $delimiter );
		else if( is_string( $delimiter ) )
			$list	= explode( $delimiter, $this->string );
		return new ArrayObject( $list );
	}
public function split( $delimiter )
	{
		if( is_int( $delimiter ) )
			$list	= str_split( $this->string, $delimiter );
		else if( is_string( $delimiter ) )
			$list	= explode( $delimiter, $this->string );
		return new ArrayObject( $list );
	}
public function split ( $ delimiter ) { if ( is_int ( $ delimiter ) ) $ list = str_split ( $ this -> string , $ delimiter ) ; else if ( is_string ( $ delimiter ) ) $ list = explode ( $ delimiter , $ this -> string ) ; return new ArrayObject ( $ list ) ; }
Splits this string into an array either by a delimiter string or an number of characters.
@access		public
@param		mixed		$delimiter		Delimiter String or number of characters
@return		ArrayObject
@see		http://www.php.net/manual/en/function.explode.php
@see		http://www.php.net/manual/en/function.str-split.php
Splits this string into an array either by a delimiter string or an number of characters .