i need to get specific value only from a key, example:
i need to get value of the "odd": "6.25"
from
"name": "Team To Score Last"->"value": "No goal"
and the ODD
this is my json
"response": [
{
"league": {},
"fixture": {},
"update": "2020-05-15T09:49:32+00:00",
"bookmakers": [
{
"id": 6,
"name": "Bwin",
"bets": [
{}, {}, {}, {}, {}, {}, {},
{}, {}, {}, {},
{
"id": 15,
"name": "Team To Score Last",
"values": [
{
"value": "No goal",
"odd": "6.25"
}
i tried with
$odds =json_decode($responseodds, true);
$value=$odds['response'][0]['bookmakers'][0]['bets'][0]['name'];
unfortunately i get only value Team To Score Last