PHP code example of duncan3dc / php-ini
1. Go to this page and download the library: Download duncan3dc/php-ini 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/ */
duncan3dc / php-ini example snippets
use duncan3dc\PhpIni\Ini;
use duncan3dc\PhpIni\Settings;
/cool-php-stuff");
use duncan3dc\PhpIni\Ini;
use duncan3dc\PhpIni\Settings;
use duncan3dc\PhpIni\State;
$ini = new State;
$ini->set(Settings::MEMORY_LIMIT, "1M");
$ini->call(function () {
# This code can't use much memory
});
# This code can use as much memory as the default memory_limit allows
eatAllTheMemory();
bash
$ composer