My code is displayed correctly, but at the end an undesirable comma appears.

Is there a way to not get (or display) the last comma?

<?php include 'fortnite-api/Autoloader.php'; $api = new FortniteClient; $api->setKey('66d907e8745cfe491729dc5e4397b54f'); ?> 

Link to the whole site: http://www.mediafire.com/file/eq0nkhwtv0vq058/jz-software.zip/file

Closed due to the fact that off-topic participants andreymal , entithat , Edward , AK , default locale 22 Sep '18 at 5:52 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - andreymal, entithat, Edward, AK
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    It is not clear what this picture has to do with this code. We need a minimal reproducible example , at the start of which we will see this comma - andreymal
  • Added archive with the whole site - Maksim
  • one
    We need a minimal reproducible example, not the whole site. Throw away everything that does not relate to the problem with a comma - andreymal
  • If the piece of code given in the question really leads to the appearance of a comma, then it is better to just say so - andreymal
  • one
    And, by the way, I found a comma in the Leaderboard.php file . Send a bug report to the Fortnite API or just erase the comma from yourself (and yes, this does not cancel my previous comments) - andreymal

1 answer 1

File:

\fortnite-api\src\Leaderboard.php

At the end of the file:

 ?>, 

The same comma that you can just delete.