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

        if(!is_array($array)) {
            return null;
        }

        return array_pop($array);
    }
public static function pop(array $array, $key)
    {
        $keys = explode('.', $key);
        foreach($keys as $key) {
            if(!isset($array[$key])) {
                return null;
            }
            $array = $array[$key];
        }

        if(!is_array($array)) {
            return null;
        }

        return array_pop($array);
    }
public static function pop ( array $ array , $ key ) { $ keys = explode ( '.' , $ key ) ; foreach ( $ keys as $ key ) { if ( ! isset ( $ array [ $ key ] ) ) { return null ; } $ array = $ array [ $ key ] ; } if ( ! is_array ( $ array ) ) { return null ; } return array_pop ( $ array ) ; }
Pop value from sub-array

@param array $array
@param string $key
@return mixed
Pop value from sub - array