nl2br : New Line : String PHP Source Code


PHP Source Code » String » New Line »

 

nl2br




<?php
   $recipe = "3 tablespoons Dijon mustard
                    1/3 cup Caesar salad dressing
                    8 ounces grilled chicken breast
                    3 cups romaine lettuce";
   // convert the newlines to <br />'s.
   echo nl2br($recipe);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» New Line