I have array values like this:
Array ( [cont_no] => Array ( [0] => 43-15 [1] => 44-18 )
Now I need to split each array values, 43-15 should be split using "-" this key and then convert into JSON type:
{"employees":[
{"cont_no":"43", "repo_id":"15"},
{"cont_no":"44", "repo_id":"18"},
]}