I have need to merge a variable number of multi-dimensional associative arrays into a larger array structure. Here is a json representation of one of the arrays...
My problem is that only the last array "3" is included. All of the associative tags are the same. I have tried array_merge but the same thing happens.Code:"HrlyInfo":{"3":{"ID":"210","Description":"Consultation\/Programming","Date":"2013-07-01","EmpNum":"A079","StaffDesc":"Professional Staff II","Hours":"1.00","Rate":95,"Comment":"No comment"}}
I would really like something like the following...
Any suggestions?Code:"HrlyInfo": {"1":{"ID":"210","Description":"Consultation\/Programming","Date":"2013-07-01","EmpNum":"A079","StaffDesc":"Professional Staff III","Hours":"1.00","Rate":95,"Comment":"No comment"}},{"2":{"ID":"210","Description":"Consultation\/Programming","Date":"2013-07-01","EmpNum":"A079","StaffDesc":"Professional Staff II","Hours":"2.00","Rate":100,"Comment":"No comment"}},{"3":{"ID":"210","Description":"Consultation\/Programming","Date":"2013-07-01","EmpNum":"A079","StaffDesc":"Professional Staff I","Hours":"3.00","Rate":110,"Comment":"No comment"}}
TIA
jDadwilson



Reply With Quote



Bookmarks