public function join($glue, $array)
    {
        if ($this->isArrayable($array))
        {
            $this->string = implode($this->retrieveValue($glue), $this->getArrayable($array));

            return $this;
        }

        throw new InvalidArgumentException('Argument 2 should be array, Container or instance of Arrayable');
    }
public function join($glue, $array)
    {
        if ($this->isArrayable($array))
        {
            $this->string = implode($this->retrieveValue($glue), $this->getArrayable($array));

            return $this;
        }

        throw new InvalidArgumentException('Argument 2 should be array, Container or instance of Arrayable');
    }
public function join ( $ glue , $ array ) { if ( $ this -> isArrayable ( $ array ) ) { $ this -> string = implode ( $ this -> retrieveValue ( $ glue ) , $ this -> getArrayable ( $ array ) ) ; return $ this ; } throw new InvalidArgumentException ( 'Argument 2 should be array, Container or instance of Arrayable' ) ; }
Join arrayable elements with a String

@param string|StringContract $glue
@param mixed $array
@return $this
@throws InvalidArgumentException
Join arrayable elements with a String