This is my input:
[
["username" => "erick", "location" => ["singapore"], "province" => ["jatim"]],
["username" => "thomas", "location" => ["ukraina"], "province" => ["anonymouse"]]
]
How can I flatten the inner arrays to string values?
Expected output:
[
["username" => "erick", "location" => "singapore", "province" => "jatim"],
["username" => "thomas", "location" => "ukraina", "province" => "anonymouse"]
]```