Mega Code Archive

 
Categories / Php / Functions
 

Convert the newlines to br

<?php    $recipe = "3     1    8    3";    // convert the newlines to <br />'s.    echo nl2br($recipe); ?>