Arr.php
public static function pull(&$array, string $key, string $delimiter = null)
    {
        $value = static::get($array, $key, null, $delimiter);

        static::remove($array, $key, $delimiter);

        return $value;
    }
public static function pull(&$array, string $key, string $delimiter = null)
    {
        $value = static::get($array, $key, null, $delimiter);

        static::remove($array, $key, $delimiter);

        return $value;
    }
public static function pull ( & $ array , string $ key , string $ delimiter = null ) { $ value = static :: get ( $ array , $ key , null , $ delimiter ) ; static :: remove ( $ array , $ key , $ delimiter ) ; return $ value ; }
Returns the value for a string delimited key from an array and then removes it.

@param   array   $array      The array to search in.
@param   string  $key        The string delimited key.
@param   string  $delimiter  The delimiter to use when exploding the key into parts.
@return  mixed
Returns the value for a string delimited key from an array and then removes it .