I want a json output as follows:
{
"id": "c200",
"name": "Aneesh",
"email": "[email protected]",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
},
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
}
}
how to write a PHP code using json_encode for this output? Thanks! Cheers!
phonekeys, alternatively, you can add another dimension insidephone, then you can have them both