how to substring words?

pieros

Новичок
Регистрация
03.09.2013
Сообщения
1
Благодарностей
0
Баллы
1
hi, in function substring we have letters, how to get words? I have text with spaces, and I need to get 50 first words. Please help
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Substring doesnt work this way. It count characters (inluding spaces)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)