php.org PHP Logo
Beginner Intermediate Advanced

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

What are the benefits of using single quotes over double quotes when writing PHP scripts?

Using single quotes over double quotes in PHP scripts can improve performance slightly because PHP does not have to parse variables inside single quot...

What are some alternative methods to nl2br() for adding line breaks in PHP echo outputs?

When outputting text in PHP using the echo function, line breaks are not automatically rendered as HTML line breaks (<br>). One common method to add l...

What are the different ways to encode a line break in PHP?

In PHP, there are different ways to encode a line break depending on the context in which it is needed. One common way is to use the "\n" character to...

How does PHP handle the ending of a string when using different types of quotations?

When using different types of quotations in PHP (single quotes, double quotes, or heredoc/nowdoc syntax), the ending of a string can be handled differ...

What is the difference between using eregi_replace() and nl2br() functions to handle line breaks in PHP?

When handling line breaks in PHP, the eregi_replace() function is used to replace a specified pattern with another in a string, while the nl2br() func...

Showing 956 to 960 of 988 results

‹ 1 2 ... 189 190 191 192 193 194 195 196 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.