How to display only array value in JSON outside in php
I am using below php code
echo '{"aaData":'.json_encode($user_details).'}';
And he comes back below output
{"aaData": [ {"id":"31","name":"Elankeeran","email":" ekeeran@yahoo.com ","activated":"0","phone":""} ]}
But I need JSON output as below
{"aaData": [ {"31","Elankeeran"," ekeeran@yahoo.com ","0","1234"} ]}
Can anyone help with this.
source share