Search Results
nl2br (PHP 4, PHP 5, PHP 7, PHP 8) nl2br — Insère un retour à la ligne HTML à chaque nouvelle ligne
The PHP nl2br() function inserts HTML line breaks before all newlines in a string, making it easier to display text with proper formatting.
La fonction nl2br convertit les sauts de ligne texte (\n, \r, \r\n, …) en saut de ligne HTML (<br />). Cette fonction peut s’avérer très pratique dans le cas d’affichage de textes issus d’une BDD.
Fonction PHP nl2br () : Convertit les retours à la ligne (\n) en retours à la ligne HTML (<br>). Idéal pour afficher du texte avec des retours à la ligne.
Gladir.com - Manuel pour le langage de programmation PHP. NL2BR : Cette fonction permet de convertir les sauts de ligne (\n) en balise <BR> du HTML.
Jul 11, 2025 · The nl2br () is an inbuilt function in PHP and is used to insert HTML break tags in the place of all new lines in a string. In normal text editors, the new line is generally denoted by using any of the following. \n\r \r\n \n \r Where, \n suggests the cursor to be moved to the next line and \r tells the cursor to be moved to the beginning of the line. This function takes strings that may ...
Maîtrisez la fonction nl2br() en PHP : syntaxe complète, exemples pratiques commentés, différences <br> vs <br />, cas d'usage réels et bonnes pratiques pour la conversion de sauts de ligne en HTML.
