JSON date to PHP Date

Solution:
<?php foreach ($api->findMatchesByCompetitionAndMatchday(2021, 1)->matches as $match) { ?>
<tr>
<td><?php echo date('Y-m-d',strtotime($match->utcDate));?></td>
<td></td>
<td><?php echo $match->homeTeam->name; ?></td>
<td>-</td>
<td><?php echo $match->awayTeam->name; ?></td>
<td><?php echo $match->score->fullTime->homeTeam; ?></td>
<td>:</td>
<td><?php echo $match->score->fullTime->awayTeam; ?></td>
</tr>
<?php } ?>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: can't write image data to path
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.