php.org PHP Logo
Beginner Intermediate Advanced

Search results for: ""\r\n""

What are the differences between \n, \r, and \r\n when trying to create line breaks in PHP file writing operations?

When writing to a file in PHP, different operating systems use different characters to represent line breaks. \n represents a line feed (LF) character...

How can one convert \r\n into a paragraph using PHP?

To convert \r\n into a paragraph using PHP, you can use the built-in function nl2br(). This function converts newlines (\r\n, \n) into HTML line break...

What is the recommended method to convert line breaks back from \r\n to \n after using mysql_real_escape?

When using mysql_real_escape_string to escape special characters in a string, line breaks are converted from \n to \r\n. To convert them back, you can...

What is the difference between "\n" and "\r\n" in PHP when writing to a file?

When writing to a file in PHP, "\n" represents a newline character, while "\r\n" represents a carriage return followed by a newline character. The dif...

Why is it important to use \r\n instead of \n for line breaks in text emails?

Using \r\n instead of just \n for line breaks in text emails is important because different operating systems handle line breaks differently. \r\n rep...

Showing 6 to 10 of 988 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 197 198 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.