Nadchodzące szkolenia

[insert_php]

$json = file_get_contents(‚https://www.chinskiraport.pl/api/list’);
$json_decoded = json_decode($json);

foreach($json_decoded as $training)
{
$type = $training->type->name;
$date = new Datetime($training->date);
$datestr = $date->format(‚d-m-Y’);
$city = $training->venue->city->name;

if($type == ‚import’)
{
echo ‚