Asf_Util::iniSets

Bulk setting configuration option values


Description

public static bool Asf_Util::iniSets(array $ini)

Parameters

ini

Input a Associative array

Return Values

Returns TRUE on success or FALSE on failure

Examples

Example #1

<?php
$arr = array('error_reporting' => E_ALL, 'memory_limit' => '2M');
var_dump(Asf_Util::iniSets($arr));
var_dump(ini_get('error_reporting'));
var_dump(ini_get('memory_limit'));

The above example will output:

bool(true)
string(5) "32767"
string(2) "2M"