php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "newline"

What function in PHP can be used to convert newline characters to HTML line breaks for displaying text from a database?

When displaying text from a database in HTML, newline characters (\n) need to be converted to HTML line breaks (<br>) in order to properly format the...

What are the best practices for converting newline characters to HTML line breaks for display in a textarea?

When displaying text from a textarea in HTML, newline characters need to be converted to HTML line breaks (<br>) in order to maintain the formatting....

What is the difference between split() and explode() functions in PHP when splitting a string by newline characters?

When splitting a string by newline characters in PHP, the main difference between the split() and explode() functions is that split() is deprecated as...

What alternatives can be used in PHP to separate data in a text file without using the newline character?

When separating data in a text file without using the newline character, one alternative is to use a different delimiter such as a comma, tab, or pipe...

What are the limitations of using file() function to determine the presence of a newline character at the end of a file in PHP?

The file() function reads a file into an array, with each element representing a line in the file. However, this function does not differentiate betwe...

Showing 41 to 45 of 659 results

‹ 1 2 ... 6 7 8 9 10 11 12 ... 131 132 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.