m8t Posted February 13, 2011 Report Share Posted February 13, 2011 (edited) Kā šādu (sk. zemāk) informāciju pārveidot par smuku masīvu (sk. vēl zemāk)? {"Nosaukums": [{"a": 1, "b": 2, "c": {"a1": "err", "a2": "bzz"}, "d": "dee"}]} <?php $arr["Nosaukums"]["a"] == 1; $arr["Nosaukums"]["b"] == 2; $arr["Nosaukums"]["c"]["a1"] == "err"; $arr["Nosaukums"]["c"]["a2"] == "bzz"; $arr["Nosaukums"]["d"] == "dee"; ?> Edited February 13, 2011 by m8t Quote Link to comment Share on other sites More sharing options...
Lauris Posted February 13, 2011 Report Share Posted February 13, 2011 json_decode ! Quote Link to comment Share on other sites More sharing options...
m8t Posted February 13, 2011 Author Report Share Posted February 13, 2011 O, liels paldies! Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 13, 2011 Report Share Posted February 13, 2011 Jautājums: kā Tu pie smukās infas tiki bez json_encode? =D Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 13, 2011 Report Share Posted February 13, 2011 Jautājums: kā Tu pie smukās infas tiki bez json_encode? =D A par to ka to var suutiit kads JS vai Javas skripts nesi padomajis? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 13, 2011 Report Share Posted February 13, 2011 Zinu, jau zinu. Tas nebija īsti nopietni. xD Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.