Overview

Namespaces

  • Mini
    • Config

Classes

  • Config
  • Utils
  • Overview
  • Namespace
  • Class
  • Tree

Class Utils

Utils class for Mini\Config

Namespace: Mini\Config
Package: Mini\Config
Author: Andrew Breksa (abreksa4@gmail.com)
Located at Config.php
Methods summary
public static array
# merge( array $array1, array $array2, boolean|false $overwrite = false )

Merges two arrays, and returns the result. Takes an optional $overwrite parameter to overwrite string value with those in the second array, i.e.:

$this->_merge([
    'database'=>[
        'password' => 'toor'
    ]],[
    'database'=>[
        'password' => 'password'
]], true);

Merges two arrays, and returns the result. Takes an optional $overwrite parameter to overwrite string value with those in the second array, i.e.:

$this->_merge([
    'database'=>[
        'password' => 'toor'
    ]],[
    'database'=>[
        'password' => 'password'
]], true);

Will result in:

[
    'database' => [
        'password' => 'password
    ]
]

Parameters

$array1
$array2
$overwrite

Returns

array
mini-config API documentation generated by ApiGen