08-25-2004, 06:44 PM
can you give me example on how to use tok
for
str input like this:
for
str input like this:
Tokenize (split) string
|
08-25-2004, 06:44 PM
can you give me example on how to use tok
for str input like this:
08-25-2004, 06:56 PM
What exactly you want to do?
08-25-2004, 07:08 PM
i want to split php return strings into variables.
IntPost phpmysql post return result: 1,test;2,site;3,quickmacros Quote:_catid with i get
08-25-2004, 07:23 PM
Extract just values that follow the numbers?
08-25-2004, 07:32 PM
Gintaras Wrote:Extract just values that follow the numbers? in this case yes. like out _catname[_catid]
08-25-2004, 07:43 PM
Here better is findrx. All submatches (enclosed substrings) are exctracted to array starting from indice 1 (0 is for whole match).
[color=blue]str [/color]s="1,test;2,site;3,quickmacros"
08-25-2004, 08:46 PM
that doesn't help.
i need to assign both php variables to qm_variables. str rx="1,(\w+);2,(\w+);3,(\w+)" findrx(return rx 0 0 temp) _catid = 1 _catname = test _catid = 2 _catname = site _catid = 3 _catname = quickmacros |
« Next Oldest | Next Newest »
|