src/ADT/String.php
public function capitalize( $delimiter = NULL )
	{
		$oldString		= $this->string;
		if( $delimiter === NULL ){
			$this->string	= ucfirst( $this->string );
			return $this->string !== $oldString;
		}
		else{
			return $this->capitalizeWords( $delimiter );
		}
	}
public function capitalize( $delimiter = NULL )
	{
		$oldString		= $this->string;
		if( $delimiter === NULL ){
			$this->string	= ucfirst( $this->string );
			return $this->string !== $oldString;
		}
		else{
			return $this->capitalizeWords( $delimiter );
		}
	}
public function capitalize ( $ delimiter = NULL ) { $ oldString = $ this -> string ; if ( $ delimiter === NULL ) { $ this -> string = ucfirst ( $ this -> string ) ; return $ this -> string !== $ oldString ; } else { return $ this -> capitalizeWords ( $ delimiter ) ; } }
Changes first letter or every delimited word to upper case and returns TRUE of there were changes.
@access		public
@param		string		$delimiter		Capitalize every word separated by delimiter
@return		bool		At least 1 character has been changed
Changes first letter or every delimited word to upper case and returns TRUE of there were changes .