PHP code example of merkdev / turkiye-iller-ilceler-php-array
1. Go to this page and download the library: Download merkdev/turkiye-iller-ilceler-php-array library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
merkdev / turkiye-iller-ilceler-php-array example snippets
composer install
composer run test
// Tüm şehirleri ve ilçelerini getir
$all_cities = $turkey->select('*')->get();
var_export($all_cities);
// Sadece yazılı şehirleri ve ilçelerini getir
$cities = $turkey->select(['Antalya', 'İstanbul'])->get();
var_export($cities);