Код: Выделить всё
$words = explode('. ', $desc);
$out = '';
foreach ($words as $key => $value) {
$out .= $value;
$rand = rand(0, 4);
if ($rand == 2) {
$out .= "\n";
} else {
$out .= ' ';
}
}
Как я могу сделать взрыв('. ' , $desc) и оставить точки там, где они есть?
Подробнее здесь: https://stackoverflow.com/questions/180 ... ace-theses
Мобильная версия