String to KeyValues
Ciao,
is there any possibility how to convert string to KeyValues tree? I need something like: PHP Code:
|
Re: String to KeyValues
You were saying something like this, yes??
Code:
"MyStructure" and this one should be.. PHP Code:
|
Re: String to KeyValues
No, that was just an example (with mistake copied from SM wiki :-D ). The main thing I need is function
PHP Code:
|
Re: String to KeyValues
As far as i concern, keyValue is string.
Why you want "StringToString"? EDIT: Pardon my poor english but i don't realy understand it. |
Re: String to KeyValues
Well, I don't mean KeyValues like string but like KeyValues tree. I just wanna iterate throw the KeyValues tree via function KvGotoNextKey(kv) etc. and only function to get existed KeyValues structure is via FileToKeyValues(kv, "myfile.txt") but I wanna use string instead of file.
So what I want is PHP Code:
PHP Code:
Now i think use json is better that KeyValues, but I am not sure.. |
Re: String to KeyValues
PHP Code:
|
Re: String to KeyValues
Well.. I decided to do it via json.. it looks easier :-D
Anyway, thanks for help ;-) |
All times are GMT -4. The time now is 21:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.