PHP code example of donatj / php-ini-builder

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

    

donatj / php-ini-builder example snippets




 = [
	'Title'   => [
		'str' => 'awesome',
		'int' => 7,
		'flt' => 10.2,
	],
	'Title 2' => [
		'bool' => true,
		'arr'  => [
			'a', 'b', 'c', 6 => 'd', 'e', 'key' => 'f',
		],
	],
];

$builder = new \donatj\Ini\Builder;

echo $builder->generate($data);


function __construct([ bool $enableBool = true [, bool $enableNumeric = true [, bool $enableAlphaNumeric = true [, bool $skipNullValues = false]]]])

function generate(array $data) : string

function __invoke(array $data) : string

function escape($value) : string

function enableBoolDetection(bool $enableBool) : void

function enableNumericDetection(bool $enableNumeric) : void

function enableAlphaNumericDetection(bool $enableAlphaNumeric) : void

function enableSkipNullValues(bool $skipNullValues) : void
bash
composer