JSON to PHP Associative array

前端 未结 3 981
夕颜
夕颜 2021-01-01 06:11

would any of you know a good way to put this into an associative array . I have tried json_decode but found it to not be much help.

This is the data i need to put in

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 06:45

    i asume your json comes via ajax.... (otherwise the code works with json_decode) so be sure the js json stringifys your object and

    you'll need to stripslashes before json_decode ;-) in php

提交回复
热议问题