PHP code example of binfer / php-xh
1. Go to this page and download the library: Download binfer/php-xh 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/ */
binfer / php-xh example snippets
php
'enable' => function() {
return true;
}
php
'enable' => function() {
if (!empty($_GET['debug'])) {
return true;
}
}
php
'enable' => function() {
return rand(0, 100) === 42;
}
php
'enable' => function() {
if (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) === '/') {
return true;
}
}