PHPMailer::normalizeBreaks

Advertisement

Summery Summery

Normalize line breaks in a string.

Syntax Syntax

PHPMailer::normalizeBreaks( string $text, string $breaktype = "rn" )

Description Description

Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format. Defaults to CRLF (for message bodies) and preserves consecutive breaks.

Parameters Parameters

$text

(string) (Required)

$breaktype

(string) (Optional) What kind of line break to use, defaults to CRLF

Default value: "rn"

Return Return

(string)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.