How to split a string and count the number of substrings?

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
I would like to split a string and know the total number of substrings.

This can be done in Javascript using:
PHP:
Substrings = string.split(',');
NumberOfSubstrings = Substrings.length;
Is there an equivalent to this using the built in macros?

Thanks!
 

darkdiver

Administrator
Команда форума
Регистрация
13.01.2009
Сообщения
2 284
Благодарностей
2 728
Баллы
113
if you need to know the exact number of splitted chunks you should use JavaScript there is no special macros for this purposes.
 

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