I have a JSON string that I parsed as a PHP object, there are certain values I want to print from the string, how do I print the exact value I need.
I have provided the code below
{
"data":
{
"id":123,
"name": "abc",
"gsm":"1133",
"metadata":
{
"cart_id":13243
},
"customer":
{
"id":123,
"email": "a@ma.co"
}
}
}
json_decode($string);
for instance "name": abc, I want to print just abc