Explode the "value" and "key" arguments passed to "pluck".

@param  string|array  $value
@param  string|array|null  $key
@return array
434122
protected static function explodePluckParameters($value, $key)
	{
		$value = is_null($key) || is_array($value) ? $value : static::toKey($value)->segments();
		$key = is_null($key) || is_array($key) ? $key : static::toKey($key)->segments();
		return [$value, $key];
	}
171612
public static function array_set(string $key, $value, array $obj)
    {
        if (is_null($key)) {
            return json_encode($obj);
        }
        $keys = explode('.', $key);
        $tmp = &$obj;
        while (count($keys) > 0) {
            $key = array_shift($keys);

            // If the key doesn't exist at this depth, we will just create an empty array
            // to hold the next value, allowing us to create the arrays to hold final
            // values at the correct depth. Then we'll keep digging into the array.
            if (!isset($tmp[$key]) || !is_array($tmp[$key])) {
                $tmp[$key] = [];
            }

            $tmp = &$tmp[$key];
        }
        $tmp = $value;

        return $obj;
    }
1136561
public function pluck($key, $default = null)
    {
        $value = $this->get($key, $default);

        $this->remove($key);

        return $value;
    }
429846
public function set($key, $value = null)
    {
        if( is_array($key) ) {
            $this->values($key);
        } else {
            $this->value($key, $value);
        }
        return $this;
    }
792450
public function prepend($value, $key = null)
    {
        $this->items = ArrayHelper::prepend($this->items, $value, $key);

        return $this;
    }
635954
public function shareData($key, $value= null)
    {
        if (is_array($key)) {
            foreach  ($key as $variableName => $variableValue) {
                $this->templateRenderer->setData($variableName, $variableValue);
            }
            return $this;
        }

        $this->templateRenderer->setData($key, $value);
        return $this;
    }
613473
public static function config($key, $value = null){

    if(!array_key_exists($key, static::$config))
      throw new \Exception(sprintf('Unrecognized option: "%s". Valid options are: %s', $key, implode(', ', array_keys(static::$config))));

    if($value === null)
      return static::$config[$key];

    if(is_array(static::$config[$key]))
      return static::$config[$key] = (array)$value;

    return static::$config[$key] = $value;
  }
1130684
public static function pluck(?string $key = null, ?array $array = null): array
    {
        if (!Any::isArray($array) || !Any::isStr($key)) {
            return [];
        }

        $output = [];
        foreach ($array as $item) {
            $object = $item[$key];
            if (!self::in($object, $output)) {
                $output[] = $object;
            }
        }
        return $output;
    }
1341462
public function array_pluck( $array, $key, $default = null, $filter = false ) {
		$array = $this->get_array_value( $array );

		return array_map( function ( $d ) use ( $key, $default ) {
			is_object( $d ) and $d = (array) $d;

			return is_array( $d ) && array_key_exists( $key, $d ) ? $d[ $key ] : $default;
		}, $filter ? array_filter( $array, function ( $d ) use ( $key ) {
			is_object( $d ) and $d = (array) $d;

			return is_array( $d ) && array_key_exists( $key, $d );
		} ) : $array );
	}
1361345
public function input($key, $value = null)
    {
        if (is_null($value)) {
            return array_get($this->inputs, $key);
        }

        return array_set($this->inputs, $key, $value);
    }
1298462
public function setValue($key, $value = null)
    {
        $meta = clone $this->meta;
        $key = AnConfig::unbox($key);

        if (is_array($key)) {
            $data = $key;
        } else {
            $data = array($key => $value);
        }

        foreach ($data as $key => $value) {
            $meta[$key] = $value;
        }

        $this->set('meta', $meta);

        return $this->_mixer;
    }
531044
public function pluck($value, $key = null): CollectionInterface
    {
        return $this->wrap(function (Iterator $data) use ($value, $key) {
            foreach ($data as $dataKey => $datum) {
                if ($key) {
                    yield $this->accessKey($datum, $key) => $this->accessKey($datum, $value);
                } else {
                    yield $this->accessKey($datum, $value);
                }
            }
        });
    }
937564
public static function options($key = null, $value = null)
    {
        $options = static::setup();
        if (!$key) {
            return $options;
        }
        if (!$value) {
            return $options[$key] ?? null;
        }
        static::$options[$key] = $value;

        return static::$options;
    }
1275048
public function share( $key, $value = null )
	{
		if ( !is_array( $key ) )
			return $this->shared[$key] = $value;

		foreach ( $key as $innerKey => $innerValue )
			$this->share( $innerKey, $innerValue );

		return null;
	}
699085
protected function arrayValue($key, $arrayKey, $value = null)
    {
        $array = $this[$key];
        $is = is_array($array);
        if (null !== $value) {
            if (!$is) {
                $array = array_key_exists($key, self::DEFAULTS)
                    ?self::DEFAULTS[$key]
                    :$this::DEFAULTS[$key];
            }
            $array[$arrayKey] = $value;
            $this[$key] = $array;
            return null;
        } else {
            return $is && isset($array[$arrayKey])
                ?$array[$arrayKey]
                :null;
        }
    }
791224
protected function cleanValue($key, $value)
    {
        if (is_array($value)) {
            return $this->cleanArray($value);
        }

        return $this->transform($key, $value);
    }
1335748
public function with($key, $value = '')
    {
        if (is_array($key)) {
            $this->appends = $key;
        } elseif (is_callable($value)) {
            $this->appends[$key] = value($value);
        } else {
            $this->appends[$key] = value($value);
        }

        return $this;
    }