php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "\r"

What are the best practices for creating a filter in PHP that allows only certain characters like A-Z, a-z, 0-9, \n, \r, and \r\n?

When creating a filter in PHP to allow only certain characters like A-Z, a-z, 0-9, \n, \r, and \r\n, it is important to use regular expressions to mat...

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 significance of properly formatting the header with \r\n when sending HTML emails in PHP?

Properly formatting the header with \r\n when sending HTML emails in PHP is crucial because it ensures that the email is displayed correctly across di...

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...

What potential issues can arise from incorrect usage of \n and \r in PHP data?

Incorrect usage of \n and \r in PHP data can lead to formatting issues, especially when dealing with text files or when displaying data on a webpage....

Showing 16 to 20 of 476 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 95 96 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.