PHP/String/New Line — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:07, 26 мая 2010
nl2br: Inserts HTML line breaks before all newlines in a string
<source lang="html4strict">
<?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
"s. echo nl2br($recipe);
?>
</source>