Exemple d'API Data Explorer en PHP

Je supprimerais la plupart des commentaires pour faciliter la lecture :slight_smile:
Certains commentaires sont inutiles, comme :

// Obtenir le résultat
//
$result = curl_exec( $ch );

ou

// fermer la session curl
curl_close( $ch );

Sachez également que vous pouvez définir la coloration syntaxique en ajoutant le nom de la langue à la première ligne des backticks :

```php
$headers = array("Content-Type: multipart/form-data;","Api-Key: $api_key","Api-Username: system",);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers );
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
```

Rendu comme

$headers = array("Content-Type: multipart/form-data;","Api-Key: $api_key","Api-Username: system",);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers );
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);