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

  • Автор темы Автор темы BlackSun
  • Дата начала Дата начала

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!
 
if you need to know the exact number of splitted chunks you should use JavaScript there is no special macros for this purposes.
 

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