/** * Sets the line end style to Windows, Mac, Unix or a custom string. * * @param string $style "win", "mac", "unix" or custom string. * @since 1.7 * @access public * @return void */ static function setLineEnd($style) { switch ($style) { case 'win': self::$_lineEnd = "\r\n"; break; case 'unix': self::$_lineEnd = "\n"; break; case 'mac': self::$_lineEnd = "\r"; break; default: self::$_lineEnd = $style; } }