08-25-2004, 06:44 PM
|
Tokenize (split) string
|
|
08-25-2004, 06:56 PM
What exactly you want to do?
08-25-2004, 07:08 PM
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
08-25-2004, 08:57 PM
maybe i should make it bullet proof:
so every pair is variable_name=value [linebreak] i mean i can format (str)return in many ways in php. do you have a suggestion for a quasi standard ? |
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)
