The json format.
{
"message-count":"1",
"messages":[
{
"status":"returnCode",
"error-text":"error-message"
}
]
}
In php, I successfully get "status" value with $response->messages[0]->status
But when I wanted to access "error-text" properties, the code $response->messages[0]->error-text
gives me error.
How to access object properties with hyphen?