Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //обрезать текст по количеству слов
- $text = strip_tags($item['text']);
- $arr = explode( ' ', $text );
- $arr = array_slice( $arr, 0, 40 );
- $text = implode( ' ', $arr ).'...'; // Этот текст нужно обработать как...
- unset($arr);
- $content[$i]['text'] = $text;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement