src/Alg/Text/PascalCase.php
static public function encode( $string, $lowercaseLetters = TRUE ){
		if( $lowercaseLetters === TRUE )
			$string	= mb_strtolower( $string );

		$string	= ucFirst( $string );
		while( preg_match( static::$regExp, $string, $matches ) )
		  $string	= $matches[1].ucfirst( $matches[2] );
		return $string;
	}
static public function encode( $string, $lowercaseLetters = TRUE ){
		if( $lowercaseLetters === TRUE )
			$string	= mb_strtolower( $string );

		$string	= ucFirst( $string );
		while( preg_match( static::$regExp, $string, $matches ) )
		  $string	= $matches[1].ucfirst( $matches[2] );
		return $string;
	}
static public function encode ( $ string , $ lowercaseLetters = TRUE ) { if ( $ lowercaseLetters === TRUE ) $ string = mb_strtolower ( $ string ) ; $ string = ucFirst ( $ string ) ; while ( preg_match ( static :: $ regExp , $ string , $ matches ) ) $ string = $ matches [ 1 ] . ucfirst ( $ matches [ 2 ] ) ; return $ string ; }
Convert a String to Camel Case, removing all spaces and underscores and capitalizing all Words.
@access		public
@static
@param		string		$string				String to convert
@param		bool		$lowercaseLetters	Flag: convert all letters to lower case before
@return		string
Convert a String to Camel Case removing all spaces and underscores and capitalizing all Words .