src/ADT/String.php
public function toLowerCase( $firstOnly = FALSE )
	{
		$oldString		= $this->string;
		if( $firstOnly && !function_exists( 'lcfirst' ) )
		{
			$this->string	= strtolower( substr( $this->string, 0, 1 ) ).substr( $this->string, 1 );
			return $this->string !== $oldString;
		}
		$method			= $firstOnly ? "lcfirst" : "strtolower";
		$this->string	= call_user_func( $method, $this->string );
		$this->string	= strtolower( $this->string );
		return $this->string !== $oldString;
	}
public function toLowerCase( $firstOnly = FALSE )
	{
		$oldString		= $this->string;
		if( $firstOnly && !function_exists( 'lcfirst' ) )
		{
			$this->string	= strtolower( substr( $this->string, 0, 1 ) ).substr( $this->string, 1 );
			return $this->string !== $oldString;
		}
		$method			= $firstOnly ? "lcfirst" : "strtolower";
		$this->string	= call_user_func( $method, $this->string );
		$this->string	= strtolower( $this->string );
		return $this->string !== $oldString;
	}
public function toLowerCase ( $ firstOnly = FALSE ) { $ oldString = $ this -> string ; if ( $ firstOnly && ! function_exists ( 'lcfirst' ) ) { $ this -> string = strtolower ( substr ( $ this -> string , 0 , 1 ) ) . substr ( $ this -> string , 1 ) ; return $ this -> string !== $ oldString ; } $ method = $ firstOnly ? "lcfirst" : "strtolower" ; $ this -> string = call_user_func ( $ method , $ this -> string ) ; $ this -> string = strtolower ( $ this -> string ) ; return $ this -> string !== $ oldString ; }
Changes all upper case characters to lower case.
@param		bool		Only change first letter (=lcfirst)
@return		bool		At least 1 character has been changed
@see		http://www.php.net/manual/en/function.strtolower.php
@see		http://www.php.net/manual/en/function.lcfirst.php
Changes all upper case characters to lower case .