This question already has an answer here:
- How can I parse a JSON file with PHP? 16 answers
{
"DeviceTicketInfo ": {
"UserId ": 27,
"Ticket ": 18005956,
"DevInfo ": "sunsoft-123456 "
},
"AvailableStations ": [{
"Id ": 2,
"No ": 2,
"Name ": "01-SUNSOFT "
}]
}
I want to echo only the UserId
from the above json
string in php
.
Please help
</div>