Alle Ländersprachen werden mit PHP verwendet

<?php
       $curla = curl_init();

    curl_setopt_array($curla, array(
      CURLOPT_URL => 'https://www.localeplanet.com/api/auto/langmap.json',
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => '',
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => 'GET',
      CURLOPT_HTTPHEADER => array(
        'Cookie: JSESSIONID=node0wj7pubwj9e8dldlcmbkwr6o995.node0'
      ),
    ));
    
    $responsea = curl_exec($curla);
    
    curl_close($curla);
    
    $arra = json_decode($responsea);
    ?>
    
     <select class="form-control" name="p_lang" id="p_lang">
                <option>Select Language</option>
                        <?php
                        	foreach($arra as $keys => $values) {
                        ?>
                            <option value="<?php echo $values; ?>"><?php echo $values; ?></option>
                        <?php
                        }?>
            </select>
faheem