1. Go to this page and download the library: Download mathiasgrimm/x 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/ */
mathiasgrimm / x example snippets
new MathiasGrimm\X\X();
// common php
echo "<pre>";
print_r($GLOBALS);
print_r($_POST);
print_r($_GET);
echo "</pre>";
// X
x($GLOBAS, $_POST, $_GET);
// ------------------------------------
// common php
echo "<pre>";
foreach ($_FILES as $file) {
print_r($file);
}
echo "</pre>";
// X
foreach ($_FILES as $file) {
x($file);
}
// ------------------------------------
// common php
echo "<pre>";
print_r($_REQUEST);
print_r($_POST);
die;
// X
xd($_REQUEST, $_POST);