PHP code example of abby-libs / php-xql
1. Go to this page and download the library: Download abby-libs/php-xql 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/ */
abby-libs / php-xql example snippets
$objXQL = new abbyLibs\phpXQL($url);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[?]/td[?]';
$arr = $objXQL->arr($path,[0,4],[0,4]);
print_r($arr);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[2]/td[?]';
$arr = $objXQL->row($path,[0,4]);
print_r($arr);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[2]/td[3]';
$string = $objXQL->row($path);
echo $string;