<?php
// your code goes here
function sumForArray($v1,$v2)
{
"charm" => $v1["charm"] + $v2["charm"],
"hp" => $v1["hp"] + $v2["hp"],
);
}
$strIN = '[{"charm":1,"hp":1}, {"charm":2,"hp":1}]';
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKZnVuY3Rpb24gc3VtRm9yQXJyYXkoJHYxLCR2MikKewoJcmV0dXJuIGFycmF5KAoJCSAiY2hhcm0iID0+ICR2MVsiY2hhcm0iXSArICR2MlsiY2hhcm0iXSwKCQkgImhwIiA9PiAkdjFbImhwIl0gKyAkdjJbImhwIl0sCgkJKTsKCQp9CgoKJHN0cklOID0gJ1t7ImNoYXJtIjoxLCJocCI6MX0sIHsiY2hhcm0iOjIsImhwIjoxfV0nOwokYXJySU4gPSBqc29uX2RlY29kZSgkc3RySU4sIHRydWUpOwpwcmludF9yKGFycmF5X3JlZHVjZSgkYXJySU4sInN1bUZvckFycmF5IikpOw==