Hello all!
I have a string in this form
and I am trying to use it like thisPHP Code:$somearray['params'] = "{"week":"42","timezone":"PDT"}";
But that is not working, I have also tried json decode but that trows me an exception, right now I am doing explode but there must be a better way to do this, can someone point me in the right direction?PHP Code:echo $somearray['params']['week'];



Reply With Quote
Bookmarks