Replace newlines in this part's contents with those specified by either
the given newline sequence or the part's current EOL setting.
public replaceEOL ( mixed $text, string $eol = null, boolean $stream = false ) : string | ||
$text | mixed | The text to replace. Either a string or a stream resource. If a stream, and returning a string, will close the stream when done. |
$eol | string | The EOL sequence to use. If not present, uses the part's current EOL setting. |
$stream | boolean | If true, returns a stream resource. |
return | string | The text with the newlines replaced by the desired newline sequence (returned as a stream resource if $stream is true). |