php echo from json file - Undefined index

please I have problem with php echo from json file:
[
{
"displayName":"Sample Name",
"displayAssets":[
{
"displayAsset":"x_1235s",
"url":"https://website.com/image1.png",
"background":"https://website.com/bg1.png"
}
],
"Date":"2021-06-12",
"price":{
"regularPrice":1600,
"finalPrice":1600
},
}
]
When I php echo
echo $item['displayName'];
echo number_format( $item['price']['regularPrice'] );
it works fine, but
echo $item['displayAssets']['url'];
show me this error -> Notice: Undefined index: url in ..
Thank all
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: sqlstate[hy000] [1698] access denied for user 'root'@'localhost'
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.