Retrieve values from json encoded string

后端 未结 3 1886
情话喂你
情话喂你 2021-01-26 01:32

I am storing a concatenated string like this:

echo json_encode($PostedDate.$Places.$Company.$Designation.$ProjectDetails.$DesiredCandidate.$HRName.$HRContact.$Em         


        
3条回答
  •  天命终不由人
    2021-01-26 01:50

    Put it into an array in php and then json_encode the array. Then you dont need to do your crazy split on the javascript side and you dont need to worry about preserving a position in a string.

提交回复
热议问题