PHP - Concatenating array values into a new array, given two arrays with identical keys
问题 I have a form that submits a report about checkpoints. Each checkpoint has a "status" and a "comment". The form is set up so it returns a multi-dimensional array with the key being the checkpoint ID like this: array(3) { ["status"]=> array(2) { ["000046"]=> string(1) "S" ["000047"]=> string(1) "S" } ["comment"]=> array(2) { ["000046"]=> string(6) "Flarg." ["000047"]=> string(0) "" } ["submit"]=> string(13) "SUBMIT REPORT" } In the above, checkpoint 000046 has a status of "S" and a comment of