hamzaemre / class.tkgm.php
这是一个使用 cURL 进行解析查询的简单 PHP 类。
1.1
2017-09-15 22:06 UTC
Requires
- php: >=5.3
- ext-curl: *
This package is not auto-updated.
Last update: 2024-09-29 04:14:33 UTC
README
这是一个使用 cURL 进行解析查询的简单 PHP 类。
安装
composer require hamzaemre/class.tkgm.php
示例用法
您可以在项目中查看其他示例。
获取省列表
<?php require_once 'vendor/autoload.php'; $parsel_sorgulama = new ParselSorgulama(); $iller = $parsel_sorgulama->ilListesiGetir(); // il listesini getirir. print_r($iller); ?>
获取区列表
<?php require_once 'vendor/autoload.php'; $parsel_sorgulama = new ParselSorgulama(); $ilceler = $parsel_sorgulama->ilceListeGetir(); // il listesini getirir. print_r($ilceler); ?>
获取街道列表
<?php require_once 'vendor/autoload.php'; $parsel_sorgulama = new ParselSorgulama(); $mahalleler = $parsel_sorgulama->mahalleListeGetir(); // il listesini getirir. print_r($mahalleler); ?>
进行解析查询
<?php require_once 'vendor/autoload.php'; $parsel_sorgulama = new ParselSorgulama(); $parsel_bilgisi = $parsel_sorgulama->parselBilgiGetir(169241,201); echo '<pre>'; print_r($parsel_bilgisi); echo '</pre>'; ?>