nl2br

 

Kurzbeschreibung

Fügt vor allen Zeilenumbrüchen eines Strings HTML-Zeilenumbrüche ein.

Funktionsbeschreibung

nl2br( string $_str ) :

Beispiele

{% $_string = "This is a text that has linebreaks. To show them on web it has to be converted."; $_webString = nl2br($_string); print($_webString); #Output: This is a text that has linebreaks.<br>To show them on web it has to be converted. %}
Nach oben