![]() |
using tokenscount
okay, so lets say i've done temp.test = clientr.equips_weapon.tokenize(",");
how do i get the number of tokens produced with tokenscount? It seems to be returning 0 whatever I do. Also, do i need to even do temp.test = var.tokenize(","); or can i simply leave it as var.tokenize(","); and proceed to checking the number of tokens produced with tokenscount? And also, would I be able to somehow use tokenscount easily with an array? Example, Lets say I have: PHP Code:
PHP Code:
PHP Code:
|
tokenize() returns an array of tokens, so
PHP Code:
You can use tokenize(delim) on any string where delim specifies the delimiter (or what you want to use to separate the string). |
If you're using an array, you don't need to tokenize it by a comma.
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 01:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.