I have an Example:
$mystring = '{"en":"<p>about en</p>","fr":"about fr","jp":"about jp"}';
$parseToArray = json_decode($mystring);
....
$aboutus = $parseToArray->$stringLang; //en,fr,jp
return false;
Else
$mystring = '{"en":"about en","fr":"about fr","jp":"about jp"}';
return Result;
I want to result return:
- en = <p>about en</p>
- fr = about fr
- jp = about jp
How can i do?
Help me.
Help me please json_decode
Re: Help me please json_decode
I don't know about anyone else but I would need a lot more info as to what you want to happen for what reason and how you want to use this before I could help, not that I know json...
more info = more help
more info = more help
- angelpeace
- Forum Members
- Posts: 39
- Joined: Fri May 15, 2009 9:45 am
Re: Help me please json_decode
Thanks Dr.CSS,
I Have:
$mystring = '{"en":"<p>about en</p>","fr":"about fr","jp":"about jp"}';
And I want to result return:
- en = <p>about en</p>
- fr = about fr
- jp = about jp
How can i do, by anywhere???
I Have:
$mystring = '{"en":"<p>about en</p>","fr":"about fr","jp":"about jp"}';
And I want to result return:
- en = <p>about en</p>
- fr = about fr
- jp = about jp
How can i do, by anywhere???
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Help me please json_decode
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.