src/Component/Json.php
/**
     * Sets an element to an array filled with a value.
     *
     * @param int $startIndex
     * @param int $length
     * @param mixed $value
     * @param ?string|int $index
     * @return self
     */
Sets an element to an array filled with a value.
Sets an element to an array filled with a value .
public function fill(int $startIndex, int $length, $value, $index = null): self
    {
        $this->do(function (&$element) use ($startIndex, $length, $value) {
            $element = array_fill($startIndex, $length, $value);
        }, $index, false, Indexing::FREE);
        return $this;
    }
public function fill ( int $ startIndex , int $ length , $ value , $ index = null ) : self { $ this -> do ( function ( & $ element ) use ( $ startIndex , $ length , $ value ) { $ element = array_fill ( $ startIndex , $ length , $ value ) ; } , $ index , false , Indexing :: FREE ) ; return $ this ; }
Sets an element to an array filled with a value.
Sets an element to an array filled with a value .