PHP code example of panda843 / ini

1. Go to this page and download the library: Download panda843/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/ */

    

panda843 / ini example snippets


$reader = new IniReader();

// Read a string
$array = $reader->readString($string);

// Read a file
$array = $reader->readFile('config.ini');

$reader = new IniReader();
$reader->setUseNativeFunction(false);

$writer = new IniWriter();

// Write to a string
$string = $writer->writeToString($array);

// Write to a file
$writer->writeToFile('config.ini', $array);

php vendor/bin/phpbench run tests/PerformanceTest --report=default