src/Colorium/Tools/ArrayDot.php
public static function push(array &$array, $key, $value)
    {
        $keys = explode('.', $key);
        foreach($keys as $key) {
            if(!isset($array[$key])) {
                $array[$key] = [];
            }
            $array = &$array[$key];
        }

        if(!is_array($array)) {
            $array = [];
        }

        array_push($array, $value);
    }
public static function push(array &$array, $key, $value)
    {
        $keys = explode('.', $key);
        foreach($keys as $key) {
            if(!isset($array[$key])) {
                $array[$key] = [];
            }
            $array = &$array[$key];
        }

        if(!is_array($array)) {
            $array = [];
        }

        array_push($array, $value);
    }
public static function push ( array & $ array , $ key , $ value ) { $ keys = explode ( '.' , $ key ) ; foreach ( $ keys as $ key ) { if ( ! isset ( $ array [ $ key ] ) ) { $ array [ $ key ] = [ ] ; } $ array = & $ array [ $ key ] ; } if ( ! is_array ( $ array ) ) { $ array = [ ] ; } array_push ( $ array , $ value ) ; }
Push value in sub-array

@param array $array
@param string $key
@param $value
Push value in sub - array