php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "new lines"

How can PHP developers prevent the automatic conversion of \n to new lines in database outputs?

When retrieving data from a database in PHP, the \n character may be automatically converted to new lines, which can affect the formatting of the outp...

How can PHP be used to properly format and display HTML content, such as converting new lines to <br> tags?

To properly format and display HTML content in PHP, we can use the nl2br() function to convert new lines in the text to <br> tags. This function repla...

How can the issue of commands not being interpreted as new lines when using "\r\n" in PHP be resolved?

When using "\r\n" in PHP to create new lines in a text file, the issue may arise where commands are not interpreted correctly and instead show up as t...

How can PHP be used to extract the last 100 lines from a large text file and write them to a new file, considering memory and performance constraints?

When dealing with large text files, it's important to consider memory and performance constraints. To extract the last 100 lines from a large text fil...

How can fseek be used in conjunction with fwrite in PHP to manage file pointers when writing specific lines to a new file?

When writing specific lines to a new file in PHP, you can use fseek to move the file pointer to the desired position before writing with fwrite. This...

Showing 11 to 15 of 8407 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1681 1682 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.