I’ve taken all of the tests and assessments to ensure that all of my skills using the MacOs or iOS and using Pages, Keynote, Numbers, Garageband and iMovie to such a high level that I can teach others how to increase their productivity and creativity.
There is an incredible but little known built-in function with PHP that replaces all new line characters within a string with html <br /> tags. Its perfect if you ever want to display the contents of a text area within HTML.
$str = nl2br($str);
This will replace all new line characters with valid XHTML <br /> tags.
There is also an optional parameter to turn of XHTML and just use traditional <br> tags.
$str = nl2br($str, false)