Answer the question
In order to leave comments, you need to log in
How to parse json array foreach?
Probably the most simple array)
I get an array of users using the post method
"data": [
{
"name": "Ivan",
"telephone": "1111",
"id": "1"
},
{
"name": "Ivan2",
"telephone": "2222",
"id": "2"
},
{
"name": "Ivan3",
"telephone": "123445453333",
"id": "3"
}
]
foreach($post['data'] as $contact) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question