public function version($for='')
	{
		switch (strtolower($for))
		{
			case 'major':
				return $this->major();
			break;

			case 'minor':
				return $this->minor();
			break;

			case 'platform':
				return $this->platformVersion();
			break;

			default:
				return $this->majorVersion . '.' . $this->minorVersion;
			break;
		}
	}
public function version($for='')
	{
		switch (strtolower($for))
		{
			case 'major':
				return $this->major();
			break;

			case 'minor':
				return $this->minor();
			break;

			case 'platform':
				return $this->platformVersion();
			break;

			default:
				return $this->majorVersion . '.' . $this->minorVersion;
			break;
		}
	}
public function version ( $ for = '' ) { switch ( strtolower ( $ for ) ) { case 'major' : return $ this -> major ( ) ; break ; case 'minor' : return $ this -> minor ( ) ; break ; case 'platform' : return $ this -> platformVersion ( ) ; break ; default : return $ this -> majorVersion . '.' . $ this -> minorVersion ; break ; } }
Retrieve the current browser's version.

@return  string  The current browser's version.
Retrieve the current browser s version .