Jump to content
php.lv forumi

aplaušana


dio

Recommended Posts

tas tak ir elementāri ņem te Tev visa pakete

$comments1 = strip_tags($comments); //apgiežam visus HTML tagus
$comments1 = nl2br($comments1); // entar par <br />
$comments1 = substr($comments1, 0, 2500); // maksimālais texta - simbolu skaits
$comments1  = ereg_replace("([^ ]{55})","\\1<br>",$comments1); // ik pēc 55 simboliem liekam <br> (tipa ja vārds pārsniedz 55 simbolus)

:blink:

Edited by sviesc
Link to comment
Share on other sites

×
×
  • Create New...