View Single Post
  #2  
Old 07-27-2010, 04:36 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
tokenize() returns an array of tokens, so
PHP Code:
temp.tokens = temp.str.tokenize(",");
temp.count = temp.tokens.size(); 
will give you the number of tokens.


You can use tokenize(delim) on any string where delim specifies the delimiter (or what you want to use to separate the string).
__________________
Reply With Quote