|
|
Ok!
|
|
|
Ok!
|
|---|---|---|---|---|
| 163 | function string_clip($string, $length)
{
$string = preg_replace( "/
|
/", "", strip_tags($string));
$string = explode(" ", $string);
$string = array_slice($string, 0, $length);
return implode(" ", $string);
} | crop string | 1390 | Обрезать текст по числу слов |